[R] Fitting arima Models with Exogenous Variables
Paul Bernal
paulbernal07 at gmail.com
Fri Jan 20 14:29:19 CET 2017
Dear friends,
I have 5 exogenous variables which I´d like to incorporate into my
auto.arima model.
I was able to incorporate the xreg, and I understand that newxreg should be
the forecast of my exogenous variables, but I have not been able to get it
to work.
Newxreg should only have one column? Should newxreg have the same number of
rows of the training data?
This is the error I keep getting but I don´t quite understand:
Error in forecast.Arima(ModelAfit, h = 12, newxreg = NewXreg) :
No regressors provided
In addition: Warning message:
In forecast.Arima(ModelAfit, h = 12, newxreg = NewXreg) :
The non-existent newxreg arguments will be ignored.
Any help will be greatly appreciated,
Best regards,
Paul
[[alternative HTML version deleted]]
More information about the R-help
mailing list