Re: [R] arima prediction

2013-05-18 Thread Berend Hasselman
On 19-05-2013, at 05:25, Preetam Pal wrote: > Hi, > > Thanks Rui, but the problem is at this point, I don't want to predict. > I want to see for the time being, how good my model fits the previous data > points. > So, if I specify n.ahead=-1 (or any -ve value) , R shows an error like: > Error i

Re: [R] arima prediction

2013-05-18 Thread Preetam Pal
Hi, Thanks Rui, but the problem is at this point, I don't want to predict. I want to see for the time being, how good my model fits the previous data points. So, if I specify n.ahead=-1 (or any -ve value) , R shows an error like: Error in rep(1, n.ahead) : invalid 'times' argument How do I get thi

Re: [R] arima prediction

2013-05-18 Thread Rui Barradas
Hello, At an R prompt type ?predict.Arima Hope this helps, Rui Barradas Em 18-05-2013 21:42, Preetam Pal escreveu: Hi all, I have a time series Y which I have modelled as ARIMA(2,0,2) by using the arima function . I want to know the model predicted values so that I can compare them with the

[R] arima prediction

2013-05-18 Thread Preetam Pal
Hi all, I have a time series Y which I have modelled as ARIMA(2,0,2) by using the arima function . I want to know the model predicted values so that I can compare them with the actual values. Which function do I need to use to get the predicted values? I have tried to find out, but with no luck ti