Why are the "observed" numbers returned by tbats.components
so different from the actual numbers? I'd think they should be the same. Data and R code follow:
> library(forecast)
> x
[1] 0.0190 0.0139 0.0223 0.0134 0.0087 0.0090 0.0090
[8] 0.0180 0.0131 0.0179 0.0161 0.0175 0.0147 0.0260
[15] 0.0442 0.0248 0.0178 0.0263 0.0224 0.0188 0.0161
[22] 0.0191 0.0179 0.0191 0.0193
> summary(x)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.00870 0.01470 0.01790 0.01858 0.01930 0.04420
> summary(tbats.components(tbats(msts(x,seasonal.periods=c(8,4)))))
observed level
Min. :-4.744 Min. :-4.659
1st Qu.:-4.220 1st Qu.:-4.164
Median :-4.023 Median :-4.012
Mean :-4.048 Mean :-4.055
3rd Qu.:-3.948 3rd Qu.:-3.887
Max. :-3.119 Max. :-3.476
I have no idea whether what's wrong with the above is in stats or in R: I seem to be lacking some knowledge in one or the other, but am not sure which. (Well, I'm lacking some knowledge in both, and thus don't know which lack is relevant here. :-)
)
:-)
) So I don't see why this was closed as off-topic; would changing its wording help? If so, how? And if not, then can you migrate it to SO, please? $\endgroup$tbats(msts(x,seasonal.periods=c(8,4))$fitted.values
. The "observed" values you are seeing are components of the model, not fitted values, despite being labeled "observed". $\endgroup$