arima.diag(z, acf.resid=T, gof.lag=10, lag.max=<<see below>>, resid=F, std.resid=T, plot=T, ...)
The chapter "Analyzing Time Series" of the S-PLUS Guide to Statistical and Mathematical Analysis.
# compute and plot diagnostics for simulated AR(1) series with mean 5 x <- arima.sim(model=list(ar=.9)) + 5 xreg <- rep(1,100) fit <- arima.mle(x,model=list(ar=.9), xreg=xreg) diag <- arima.diag(fit)lynx.arma11 <- arima.mle(lynx, model=list(ar=0, ma=0)) arima.diag(lynx.arma11)