[R] predict.Arima error "'xreg' and 'newxreg' have different numbers of columns"

2013-03-22 Thread Yuan, Rebecca
Hello all, I use arima to fit the model with fit <- arima(y, order = c(1,0,1), xreg = list.indep, include.mean = TRUE) and would like to use predict() to forecast: chn.forecast <- rep(0,times=num.record) chn.forecast[1] <- y[1] for (j in 2:num.record){ indep

Re: [R] predict.Arima: warnings from xreg magic

2010-06-02 Thread Huber2010
I found the same annoying warning, but I ignore it, as you said it's not use at all. The error (at least for me) is in the line class(xreg) <- NULL This makes xreg a list, so you cannot apply cbindmaybe they will fix that some time in the future (you can always recompile the code) Huber

[R] predict.Arima: warnings from xreg magic

2010-03-31 Thread Johann Hibschman
When I run predict.Arima in my code, I get warnings like: Warning message: In cbind(intercept = rep(1, n), xreg) : number of rows of result is not a multiple of vector length (arg 1) I think this is because I'm not running predict.Arima in the same environment that I did the fit, so the d

Re: [R] predict.arima

2007-09-16 Thread Prof Brian Ripley
On Sat, 8 Sep 2007, shao ran wrote: > Hi *, > > Firstly, thank you so much for your time to read my email. > > I am currently interested in how to use R to predict time series from > models fitted by ARIMA. The package I used is basic stats package, and the > method I used is predict.Arima. > > Wh