The onestep.df
object produced from the for loop contains all of the accuracy measure for all of the groups. Take a look at the first 6. You can see that the accuracy measure rmse
, mae
, and mape
are captured for each of the categories:
head(onestep.df) > cat rmse mae mape acf1 > 1 18 to 24 YEARS 0.013772470 0.009869590 3.752381 1.0000552 > 2 25 to 34 YEARS 0.004036661 0.003380938 1.217612 1.0150588 > 3 35 to 44 YEARS 0.006441549 0.004790155 2.231886 0.9999469 > 4 45 to 54 YEARS 0.004261185 0.003129072 1.734022 0.9999750 > 5 55 to 64 YEARS 0.005160212 0.004988592 3.534093 0.7878765 > 6 65 YEARS AND OVER 0.002487451 0.002096323 12.156875 0.9999937 cbind(fit$x, fit$fitted, fit$residuals) > Time Series: > Start = 1999 > End = 2008 > Frequency = 1 > fit$x fit$fitted fit$residuals > 1999 0.11954420 0.1056241 0.0139200744 > 2000 0.10725759 0.1056255...