fitted.SMEDIAN: Extract fitted values from a seasonal median model

View source: R/methods-fable.R

fitted.SMEDIANR Documentation

Extract fitted values from a seasonal median model

Description

Extract fitted values from a fitted SMEDIAN model.

Usage

## S3 method for class 'SMEDIAN'
fitted(object, ...)

Arguments

object

A fitted SMEDIAN model object.

...

Additional arguments. Currently not used.

Value

Fitted values.

See Also

Other SMEDIAN: SMEDIAN(), forecast.SMEDIAN(), model_sum.SMEDIAN(), residuals.SMEDIAN()

Examples

library(dplyr)
library(tsibble)
library(fabletools)

train_frame <- elec_price |>
  filter(bidding_zone == "DE") |>
  slice_head(n = 24 * 21) |>
  as_tsibble(index = time)

model_frame <- train_frame |>
  model("SMEDIAN" = SMEDIAN(value ~ lag("week")))

fitted(model_frame)

tscv documentation built on May 13, 2026, 9:07 a.m.