Learn R Programming

fabletools (version 0.5.0)

residuals.mdl_df: Extract residuals values from models

Description

Extracts the residuals from each of the models in a mable. A tsibble will be returned containing these residuals.

Usage

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

# S3 method for mdl_ts residuals(object, type = "innovation", ...)

Arguments

object

A mable or time series model.

...

Other arguments passed to the model method for residuals()

type

The type of residuals to compute. If type="response", residuals on the back-transformed data will be computed.