Learn R Programming

fasster (version 0.2.0)

residuals.FASSTER: Extract residuals from a FASSTER model

Description

Returns the one-step-ahead forecast errors (residuals) from a FASSTER model.

Usage

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

Value

A numeric vector of residuals with the same length as the training data.

Arguments

object

A fitted FASSTER model object.

...

Additional arguments (currently unused).

Examples

Run this code
library(tsibble)
fit <- as_tsibble(mdeaths) |>
  model(FASSTER(value ~ trend(1) + fourier(12)))

# Extract residuals
residuals(fit)

Run the code above in your browser using DataLab