forecast.DSHW: Forecast a DSHW model

View source: R/methods-fable.R

forecast.DSHWR Documentation

Forecast a DSHW model

Description

Forecast a fitted DSHW model.

Usage

## S3 method for class 'DSHW'
forecast(object, new_data, specials = NULL, ...)

Arguments

object

A fitted DSHW model object.

new_data

A tsibble containing future time points.

specials

Parsed specials. Currently not used.

...

Additional arguments. Currently not used.

Value

A vector of forecast distributions.

See Also

Other DSHW: DSHW(), fitted.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)))

forecast(model_frame, h = 24)


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