arima.errors: ARIMA errors

Description Usage Arguments Value Author(s) See Also Examples

Description

Returns original time series after adjusting for regression variables. These are not the same as the residuals. If there are no regression variables in the ARIMA model, then the errors will be identical to the original series. If there are regression variables in the ARIMA model, then the errors will be equal to the original series minus the effect of the regression variables, but leaving in the serial correlation that is modelled with the AR and MA terms. If you want the "residuals", then use residuals(z)..

Usage

1

Arguments

z

Fitted ARIMA model from arima

Value

A time series containing the "errors".

Author(s)

Rob J Hyndman

See Also

arima, residuals

Examples

1
2
3
4
5
ukdeaths.fit <- Arima(UKDriverDeaths,c(1,0,1),c(0,1,1),xreg=Seatbelts[,"law"])
ukdeaths.errors <- arima.errors(ukdeaths.fit)
par(mfrow=c(2,1))
plot(UKDriverDeaths)
plot(ukdeaths.errors)

ttnsdcn/forecast-package documentation built on June 1, 2019, 2:49 a.m.