Closed espher1987 closed 2 years ago
When you use window()
here, you end up with a data set of 12 observations. There are 8 degrees of freedom for the model, leaving only 4 degrees of freedom for the errors. The function is set to use a heuristic, non-optimized approach for the initial states whenever there are four or fewer degrees of freedom for the errors. This means that the likelihood is never computed (only the MSE), and so the AIC cannot be calculated.
does ets()
and hw()
use complete different methods? Why hw()
fit a model but ets()
don't? as far i understand, a hw model can be fitted using ets()
function, so... is this the way should work?
hw()
usually calls ets()
to fit a model. But if the data set is too small for the model to be estimated, it uses a heuristic approach instead.
Hello to everyone and thanks for reading this I'm trying to fit a short time series with holtwinters method, so far i dont get problem with my model but AIC and BIC information is missing, but model can be fitted, maybe i'm missing something here. Please check this:
if i remove the window(), all works fine:
Created on 2021-11-22 by the reprex package (v2.0.1)
AIC or BIC cant be calculated in first model.
If i try to fit a ets, with window(), i get:
So i don't know what happens!
Thanks for this amazing package!.