Learn R Programming

fabletools (version 0.5.0)

fitted.mdl_df: Extract fitted values from models

Description

Extracts the fitted values from each of the models in a mable. A tsibble will be returned containing these fitted values. Fitted values will be automatically back-transformed if a transformation was specified.

Usage

# S3 method for mdl_df
fitted(object, ...)

# S3 method for mdl_ts fitted(object, h = 1, ...)

Arguments

object

A mable or time series model.

...

Other arguments passed to the model method for fitted()

h

The number of steps ahead that these fitted values are computed from.