[R] Arima with an external regressor
eric.esposito at gazdefrance.com
Mon Sep 1 17:03:55 CEST 2003
Does anybody know if the function arima with an external regressor (xreg)
applies the auto correlation on the dependant variable or on the residuals.
In comparison with SAS (proc autoreg), it seems that the auto correlation
applies on the residuals but i'd like to have the confirmation.
I want to estimate:
Y[t] = a*X[t] + a + E[t]
Should I use :
arima(Y, xreg=X, order=c(1,0,0)) or rather arima(Y,
And what is the exact equation of the estimating model:
Y[t] = a*X[t] + a + E[t] + b*E[t-1] or Y[t] = a*X[t]
+ a + b*E[t-1]
where a, a and b are the coefficients returned by the arima
More information about the R-help