Skip to contents

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.

Value

A model specification, to use with fit_model(), forecast_model() or backtest().

Examples

forecast_model(model_log_linear(window = 60), AirPassengers, h = 3)
#>           Jan      Feb      Mar
#> 1961 444.6022 422.6663 483.5639