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

# 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.