Re: [R] Prediction from Arima model

2024-08-31 Thread Rui Barradas
Às 18:54 de 31/08/2024, Christofer Bogaso escreveu: Hi, I have run following code to obtain one step ahead confidence interval from am arima model library(forecast) set.seed(100) forecast(Arima(rnorm(100), order = c(1,0,1), xreg = rt(100, 1)), h = 1, xreg = 10) However this appear to provide

Re: [R] Prediction from Arima model

2024-08-31 Thread Christofer Bogaso
Yes, very helpful. Also, my second question was how can I extract the prediction standard error? On Sun, Sep 1, 2024 at 1:00 AM Mark Leeds wrote: > > Chris: As David mentioned, if you have "new" data, then the interval has to > be a prediction > interval because the difference between a CI and

Re: [R] Prediction from Arima model

2024-08-31 Thread Mark Leeds
Chris: As David mentioned, if you have "new" data, then the interval has to be a prediction interval because the difference between a CI and a PI is that the PI is constructed for data that hasn't been seen yet. The CI is constructed for data that's already there. I hope this helps. On Sat, Aug 3

Re: [R] Prediction from Arima model

2024-08-31 Thread Christofer Bogaso
I want to obtain confidence interval for a new data as well as estimate of SE for the new data On Sat, Aug 31, 2024 at 11:58 PM David Winsemius wrote: > > > Sent from my iPhone > > > On Aug 31, 2024, at 10:55 AM, Christofer Bogaso > > wrote: > > > > Hi, > > > > I have run following code to obt

Re: [R] Prediction from Arima model

2024-08-31 Thread David Winsemius via R-help
Sent from my iPhone > On Aug 31, 2024, at 10:55 AM, Christofer Bogaso > wrote: > > Hi, > > I have run following code to obtain one step ahead confidence interval > from am arima model > > library(forecast) > > set.seed(100) > > forecast(Arima(rnorm(100), order = c(1,0,1), xreg = rt(100,

[R] Prediction from Arima model

2024-08-31 Thread Christofer Bogaso
Hi, I have run following code to obtain one step ahead confidence interval from am arima model library(forecast) set.seed(100) forecast(Arima(rnorm(100), order = c(1,0,1), xreg = rt(100, 1)), h = 1, xreg = 10) However this appear to provide the Prediction interval, however I wanted to get the