| refit.ARIMA {fable} | R Documentation |
Applies a fitted ARIMA model to a new dataset.
## S3 method for class 'ARIMA' refit(object, new_data, specials = NULL, reestimate = FALSE, ...)
object |
The time series model used to produce the forecasts |
new_data |
A |
specials |
(passed by |
reestimate |
If |
... |
Additional arguments for forecast model methods. |
A refitted model.
lung_deaths_male <- as_tsibble(mdeaths) lung_deaths_female <- as_tsibble(fdeaths) fit <- lung_deaths_male %>% model(ARIMA(value ~ 1 + pdq(2, 0, 0) + PDQ(2, 1, 0))) report(fit) fit %>% refit(lung_deaths_female) %>% report()