I simply want to get the predicted values for my training data when I use Arima from the forecast package. I think I can use:
refit <- Arima(test, model = model)
predicted <- refit$fitted %>% as.data.frame()
but I am not sure. According to the doc:
Output from a previous call to Arima. If model is passed, this same model is
fitted to y without re-estimating any parameters.
Sorry a bit confusing to me. The model is fitted without fitting parameters? Can one not simply get the predictions as is? Hope that makes sense. Thanks!
question from:
https://stackoverflow.com/questions/65872039/predict-simply-on-training-data-using-arima-in-forecast-package 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…