Re: [R] Fitted values from AR model

2022-08-13 Thread bogus christofer
values, the > fits are extremely close.) > > HTH, > Eric > > On Thu, Aug 11, 2022 at 9:53 PM bogus christofer > wrote: > > > > Hi, > > > > I have below AR model and fitted values from the forecast package > > > > library(forecast) > > dta

[R] Fitted values from AR model

2022-08-11 Thread bogus christofer
Hi, I have below AR model and fitted values from the forecast package library(forecast) dta = c(5.0, 11, 16, 23, 36, 58, 29, 20, 10, 8, 3, 0, 0, 2, 11, 27, 47, 63, 60, 39) fit <- arima(dta, order=c(2,0,0)) fitted(fit) This gives fitted values as Time Series: Start = 1 End = 20 Frequency = 1 [1