powered by
Applies a fitted average method model to a new dataset.
# S3 method for model_mean refit(object, new_data, specials = NULL, reestimate = FALSE, ...)
The time series model used to produce the forecasts
A tsibble containing future information used to forecast.
tsibble
(passed by fabletools::forecast.mdl_df()).
fabletools::forecast.mdl_df()
If TRUE, the mean for the fitted model will be re-estimated to suit the new data.
TRUE
Additional arguments for forecast model methods.
lung_deaths_male <- as_tsibble(mdeaths) lung_deaths_female <- as_tsibble(fdeaths) fit <- lung_deaths_male %>% model(MEAN(value)) report(fit) fit %>% refit(lung_deaths_female) %>% report()
Run the code above in your browser using DataLab