Displaying 1 result from an estimated 1 matches for "cargotonnage".
2012 Nov 14
0
Time Series with External Regressors in R Problems with XReg
...ULL,
method = c("CSS-ML", "ML", "CSS"),
n.cond, optim.method = "BFGS",
optim.control = list(), kappa = 1e6)
Now, I know that you don?t need all the parameters in the function so I
basically fit the model using this sentence:
> var1.fit<-arima(response$cargotonnage, order=c(3,0,0), xreg=explanatory,
> include.mean=FALSE)
> var1.fit
Now the weird thing here is that R was actually able to fit the model,
however, when I wanted to make predictions (see below):
> var1.pred<-predict(var1.fit, n.ahead=12)
R popped the following error:
[b]Error in pre...