R: Extract residuals from a fable model

residuals.fable_theta {fable} | R Documentation

## Extract residuals from a fable model

### Description

Extracts the residuals.

### Usage

    ## S3 method for class 'fable_theta'
    residuals(object, ...)

### Arguments

`object` | The time series model used to produce the forecasts
`...` | Additional arguments for forecast model methods.

### Value

A vector of fitted residuals.

### Examples

    library(tsibbledata)
    vic_elec %>%
      model(avg = MEAN(Demand)) %>%
      residuals()

[Package fable version 0.3.0 Index]