| GetResiduals | R Documentation |
This utility function is useful to use in the portmanteau functions,
BoxPierce, MahdiMcLeod, Hosking,
LiMcLeod, LjungBox, and portest.
GetResiduals() function takes a fitted time-series object
with class "ar", "arima0", "Arima",
("ARIMA forecast ARIMA Arima"), "lm", ("glm" "lm"),
"varest", or "list".
and returns the residuals and the order from the fitted object.
GetResiduals(obj)
obj |
a fitted time-series model with class |
List of order of fitted time series model and residuals from this model.
Esam Mahdi and A.I. McLeod.
ar, ar.ols, ar.burg,
ar.yw, ar.mle, arima0, arima,
Arima, auto.arima,
lm, glm, VAR,
BoxPierce, LjungBox, MahdiMcLeod, Hosking,
LiMcLeod.
fit <- arima(Nile, c(1, 0, 1))
GetResiduals(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.