When calculating one-step forecast and using a model with Box Cox transformation, the fitted values returned are not being applied with the inverse box cox transformation.
Jan Feb Mar Apr
2007 4.961065 3.934413 4.253066 3.896343 ...
When it should return InvBoxCox(fitted(fit2), lambda=lambda):
Jan Feb Mar Apr
2007 28.00986 16.75399 19.77845 16.41818 ...
Apparently, the problem comes when calling arima2 with the already transformed data. The function calls Arima again with the transformed values and does not pass the lambda value, thus not applying the InvBoxCox.
When calculating one-step forecast and using a model with Box Cox transformation, the fitted values returned are not being applied with the inverse box cox transformation.
Example:
fit2$fitted
returns:When it should return
InvBoxCox(fitted(fit2), lambda=lambda)
:Apparently, the problem comes when calling
arima2
with the already transformed data. The function calls Arima again with the transformed values and does not pass thelambda
value, thus not applying the InvBoxCox.