residuals.mdl_df: Extract residuals values from models

View source: R/residuals.R

residuals.mdl_dfR Documentation

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 class 'mdl_df'
residuals(object, ...)

## S3 method for class '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.


fabletools documentation built on Oct. 12, 2023, 1:07 a.m.