residuals.NNETAR: Extract residuals from a fable model

residuals.NNETARR Documentation

Extract residuals from a fable model

Description

Extracts the residuals.

Usage

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

Arguments

object

A model for which forecasts are required.

...

Other arguments passed to methods

Value

A vector of fitted residuals.

Examples

as_tsibble(airmiles) %>%
  model(nn = NNETAR(box_cox(value, 0.15))) %>%
  residuals()

fable documentation built on Sept. 25, 2024, 1:08 a.m.