I am working with time series, which is not stationary. I apply the differencing and log transformation to make my data stationary. I forecast one year ahead forecast and check the accuracy of the model by retransforming it into its original form, but fail to obtain the required result. I can explain my question with the help of a simple example:
data <- c(10.45,45.6,33.67,32.12,76.34,12.3,23.5,13.76,35.78,98.45,77.88)
ac <- diff(log(data))
ad <- 10.45 + diffinv(exp(ac))
so ad= c(10.45000 ,14.81364, 15.55201, 16.50598, 18.88269, 19.04381, 20.95438, 21.53991, 24.14020,26.89174, 27.68280)