Decomposes the series by STL (or MSTL, for several periods), forecasts
the seasonally adjusted series with model and adds back the seasonal
pattern of the last cycle.
Value
A model specification, to use with fit_model(),
forecast_model() or backtest().
Examples
forecast_model(model_log(model_decomposed(model_drift())), AirPassengers, h = 3)
#> Jan Feb Mar
#> 1961 446.7876 426.2122 491.8037