fitted.DSHW: Extract fitted values from a DSHW model

View source: R/methods-fable.R

fitted.DSHWR Documentation

Extract fitted values from a DSHW model

Description

Extract fitted values from a fitted DSHW model.

Usage

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

Arguments

object

A fitted DSHW model object.

...

Additional arguments. Currently not used.

Value

Fitted values.

See Also

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

Examples


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

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

model_frame <- train_frame |>
  model("DSHW" = DSHW(value, periods = c(24, 168)))

fitted(model_frame)


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