Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

GetResiduals

Extract Residuals from ARIMA, VAR, or any Simulated Fitted Time Series Model


Description

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.

Usage

GetResiduals(obj)

Arguments

obj

a fitted time-series model with class "ar", "arima0", "Arima", ("ARIMA forecast ARIMA Arima"), "lm", ("glm" "lm"), "varest", or "list".

Value

List of order of fitted time series model and residuals from this model.

Author(s)

Esam Mahdi and A.I. McLeod.

See Also

Examples

fit <- arima(Nile, c(1, 0, 1))
GetResiduals(fit)

portes

Portmanteau Tests for Univariate and Multivariate Time Series Models

v5.0
GPL (>= 2)
Authors
Esam Mahdi [aut, cre], Ian McLeod [ctb]
Initial release
2020-12-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.