Skip to contents

Runs model on the transformed series and brings the forecasts back to the original scale. The series must be positive.

Usage

model_box_cox(model, lambda = 0)

model_log(model)

Arguments

model

The model.

lambda

The Box-Cox parameter (0 is the log), or "guerrero" to choose it at each fit by Guerrero's method.

Value

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

Examples

forecast_model(model_log(model_airline()), AirPassengers, h = 3)
#>           Jan      Feb      Mar
#> 1961 450.4223 425.7170 479.0062