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
This isn't working because it is treating f1 and f2 as response variables, rather than formulas.
You need to use !!f1 and !!f2 to substitute the names f1 and f2 with their values.
Error in
combination_model()
:!
combination_model()
must use component models with the same response variable.Example to reproduce error:
library(fable)
library(tsibbledata)
f1 <- formula(Tobacco ~ Beer)
f2 <- formula(Tobacco ~ Gas)
fabletools::model(aus_production
, cmbn1 = combination_model(
NNETAR(formula = f1)
, NNETAR(formula = f2)
, cmbn_args = list(weights = "inv_var")))
__
The text was updated successfully, but these errors were encountered: