[R] Time Series - ARIMA differencing problem
wrcstone at gmail.com
Thu Mar 5 16:38:46 CET 2009
I have been using this website (
http://www.stat.pitt.edu/stoffer/tsa2/Rissues.htm ) to help me to fit ARIMA
models to my data. At the moment I have two possible methods to use.
If I use
arima(ts.data, order=c(1,2,0), xreg=1:length(ts.data))
then the wrong value for the intercept/mean is given (checked on SPSS and
Minitab) and also, this is produced
In sqrt(diag(x$var.coef)) : NaNs produced
Which means that the t-values (for the coefficients) are NaNs, which in turn
means that the p-values are NaNs.
Although, using this method gives the correct forecast (using predict) and
enables ts.plot to show the forecast and 95% CI's.
If I use
and then apply an ARIMA(1,0,0) to it, then this gives the correct
coefficients but the forecasts are wrong (ie they are flat and do not follow
Could anyone think of a way to get both the coefficients AND the forecasts
View this message in context: http://www.nabble.com/Time-Series---ARIMA-differencing-problem-tp22354071p22354071.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help