Learn R Programming

itsmr (version 1.10)

test: Test residuals for stationarity and randomness

Description

Test residuals for stationarity and randomness

Usage

test(e)

Value

None

Arguments

e

Time series data (typically residuals from Resid)

Details

Plots ACF, PACF, residuals, and QQ. Displays results for Ljung-Box, McLeod-Li, turning point, difference-sign, and rank tests. The plots can be used to check for stationarity and the other tests check for white noise.

See Also

Resid

Examples

Run this code
M = c("log","season",12,"trend",1)
e = Resid(wine,M)
test(e) ## Is e stationary?
a = arma(e,1,1)
ee = Resid(wine,M,a)
test(ee) ## Is ee white noise?

Run the code above in your browser using DataLab