I try to generate multiple one-step forecasts by using the HoltWinters method for exponential smoothing. I, therefore, split my data into training and testing and fit a HoltWinters model on my training set. Now I want to produce multiple one-step forecasts for the length of my test data, in a way that the model is "updated" with every new observation of the test set, without re-estimation of the parameters. Kind of in a way rolling origin cross-validation would be done.
I found the refit()
-function, but that only seems to work with ARIMA models. Does someone know some code that could work? Or somewhere I could read about it?
How to refit a Holt-Winters exponential smoothing model on test data without re-estimation of parameters
257 Views Asked by csarvf_01 At
1
The Holt-Winters method is a special case of an ETS model. So you can use the
ETS
function from the fable package like this:Created on 2022-06-02 by the reprex package (v2.0.1)
If you specifically wanted the Holt-Winters variant, you could use
for a multiplicative Holt-Winters model or
for an additive Holt-Winters model