refit.ETS | R Documentation |
Applies a fitted ETS model to a new dataset.
## S3 method for class 'ETS'
refit(
object,
new_data,
specials = NULL,
reestimate = FALSE,
reinitialise = TRUE,
...
)
object |
A model for which forecasts are required. |
new_data |
A tsibble containing the time points and exogenous regressors to produce forecasts for. |
specials |
(passed by |
reestimate |
If |
reinitialise |
If TRUE, the initial parameters will be re-estimated to suit the new data. |
... |
Other arguments passed to methods |
lung_deaths_male <- as_tsibble(mdeaths)
lung_deaths_female <- as_tsibble(fdeaths)
fit <- lung_deaths_male %>%
model(ETS(value))
report(fit)
fit %>%
refit(lung_deaths_female, reinitialise = TRUE) %>%
report()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.