I am trying to use same code for getting fitted values for ARIMA model ARIMA(1,0,1)(1,0,1)12 but i am getting error "Error: R (95): Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), : ". any thoughts?
I'm using the TS Factory tools to get predictions on groups of data. I'm interested in the next forecasted point, as well as the fitted values - similar to the need in the original post. I am leveraging the R code Neil provided, however it doesn't appear to be giving fitted values for anything beyond the first group. What would needs to be added / changed with the R code so the fitted values are listed by group? See attached workflow. Thanks!
So now I have the correct # of rows, but the 2nd column with the group identifier would be nice, but possibly not necessary as I could just append it to the original input data stream...if the # of rows is the same. Any thoughts there?