
tsdiag(object, gof.lag, ...)
gof.lag
. The methods for arima
and StructTS
objects
plots residuals scaled by the estimate of their (individual) variance,
and use the Ljung--Box version of the portmanteau test.
arima
, StructTS
, Box.test
require(graphics)
fit <- arima(lh, c(1,0,0))
tsdiag(fit)
## see also examples(arima)
(fit <- StructTS(log10(JohnsonJohnson), type = "BSM"))
tsdiag(fit)
Run the code above in your browser using DataLab