Regression of the log of the series on a linear trend and seasonal
dummies, brought back with Duan's smearing correction.
Usage
model_log_linear(window = NULL, deflator = NULL)
Arguments
- window
Fit on the last window observations only.
- deflator
A price index to deflate by before fitting, one value per
period from the first observation on. The future of the index is not
read: the forecasts are inflated back at its growth over the last cycle.
See also
Other models:
model_arima(),
model_auto_arima(),
model_box_cox(),
model_croston(),
model_decomposed(),
model_ensemble(),
model_ets(),
model_holt_winters(),
model_mean(),
model_prophet(),
model_tbats(),
model_theta()
Examples
forecast_model(model_log_linear(window = 60), AirPassengers, h = 3)
#> Jan Feb Mar
#> 1961 444.6022 422.6663 483.5639