With fable I can do:
require(fable)
it <- tsibbledata::global_economy %>% filter(Country == "Italy")
fm <- model(.data = it, ARIMA(log(GDP) ~ Population), ETS(log(GDP)))
I would like to be able to build the model list prior passing it to model(), something like:
mod_list <- list2(m1 = ARIMA(log(GDP) ~ Population), m2 = ETS(log(GDP)))
fm <- model(.data = it, mod_list)
I could not find a way of achieving this. Any suggestions?
Something like:
map(mod_list, model, .data = it)
could be a starting point but not exactly what I would like to achieve
Thanks in advance for any help