fable Model Wrapper
fable_model.Rd
Provides an interface for models from the fable
package.
Note the feasts::ARIMA
model requires the feast
package. If future
is being used fable
will require future.apply
in
order to not silently fail.
Value
A dataframe of predictions (with columns representing the time horizon and rows representing samples).
Examples
if (FALSE) { # \dontrun{
## Used on its own
fable_model(
y = EpiSoon::example_obs_rts[1:10, ]$rt,
model = fable::ARIMA(y ~ time),
samples = 10, horizon = 7
)
forecast_rt(EpiSoon::example_obs_rts[1:10, ],
model = function(...) {
fable_model(model = fable::ARIMA(y ~ time), ...)
},
horizon = 7, samples = 10
)
} # }