AutocorTest(x, lag=ceiling(log(length(x))),
type=c("Ljung-Box", "Box-Pierce", "rank"),
df=lag )
Box.test
.Box.test
ARIMA
data(m.ibm2697)
AutocorTest(m.ibm2697, 5)
AT4 <- AutocorTest(m.ibm2697, 5, df=4)
str(AT4) # $method = "Box-Ljung test (lag = 5)"
Run the code above in your browser using DataLab