Description Usage Arguments Value Author(s) See Also Examples
Produces a time plot of the residuals, the corresponding ACF, and a histogram. If the degrees of freedom for the model can be determined, the output from either a Breusch-Godfrey test or a Ljung-Box test is printed.
1 | checkresiduals(object, lag, df=NULL, test, ...)
|
object |
Either a time series model, a forecast object, or a time series (assumed to be residuals). |
lag |
Number of lags to use in the Ljung-Box or Breusch-Godfrey test. If missing, it is set to |
df |
Number of degrees of freedom for fitted model, required for the Ljung-Box or Breusch-Godfrey test. Ignored if the degrees of freedom can be extracted from |
test |
Test to use for serial correlation. By default, if |
... |
Other arguments are passed to |
None
Rob J Hyndman
1 2 | fit <- ets(WWWusage)
checkresiduals(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.