[R] Problem with predict arima

Laura Quinn laura at env.leeds.ac.uk
Thu Jun 24 20:20:51 CEST 2004


I have fitted an arima(0,0,2) model to my data, and am trying to plot a
forecast for the next 15 time steps, but each time i try I am given the
following error message:

Error in .cbind.ts(list(...), makeNames(...), dframe = dframe, union =
TRUE) :
        non-time series not of the correct length

I am calculating as follows:

my.arima<-arima(my.list,order=c(0,0,2))
my.forecast<-predict(my.arima,15)
ts.plot(my.list,my.forecast$pred,my.forecast$pred+2*my.forecast$se,
        myforecast$pred-2*my.forecast$se)

my.list has 1 column and 2880 rows...I don't understand why I am getting
this error message - any advice?

Thanks,
Laura

Laura Quinn
Institute of Atmospheric Science
School of the Environment
University of Leeds
Leeds
LS2 9JT

tel: +44 113 343 1596
fax: +44 113 343 6716
mail: laura at env.leeds.ac.uk




More information about the R-help mailing list