In the Arima package, using a Box-Cox transformation give wrong results when later applied to the forecast method.
For example, consider this data:
library(forecast)
data<-c(2,3,2,3,2,3)
And for the sake of simplicity, consider an ARIMA(0,0,0) model. (The mean of this series is 2.5.)
The mean forecast made without a Box-Cox transformation is correct:
forecast(Arima(data,order=c(0,0,0)))$mean
[1] 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5
However if we use a Box-Cox transformation, such as a log transformation with lambda=0, the "mean" forecast is wrong:
forecast(Arima(data,order=c(0,0,0), lambda=0))$mean
[1] 2.44949 2.44949 2.44949 2.44949 2.44949 2.44949 2.44949 2.44949 2.44949 2.44949
It seems that to produce the mean forecast of Y=exp(X), it does E(Y)=exp(E(X)).
Is there a way to correct this? Is there a package with a correct implementation of forecasts with Box-Cox transformations?