You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cc @robjhyndman - I think this is due a difference in checks of characteristic equation roots between the C++ during optimisation (used in model()/estimate()), and the R check during initialisation (used in refit())
The R code is correct (eq 10.5, p156 of the Springer book https://paperpile.com/shared/FoKgkF). You can see from the comment in the C++ code on line 283 that this was what was intended but somehow the phi multiple has been included. I guess this happened when the C++ version was introduced in the forecast package (cc @cbergmeir). It will need to be fixed there as well.
Ref: https://stackoverflow.com/questions/68673653/why-am-i-getting-parameters-out-of-range-error-after-fitting-a-default-ets-mod
cc @robjhyndman - I think this is due a difference in checks of characteristic equation roots between the C++ during optimisation (used in
model()
/estimate()
), and the R check during initialisation (used inrefit()
)fable/R/etsmodel.R
Lines 503 to 512 in 0f3c42f
From R, we have
P[2] = alpha + beta - alpha * phi + gamma - 1
fable/src/etsTargetFunction.cpp
Lines 280 to 306 in 0f3c42f
From C++ we have
op_new[1] = phi*(alpha+beta-alpha*phi+gamma-1)
Which is correct?
The text was updated successfully, but these errors were encountered: