View source: R/methods-fable.R
| forecast.DSHW | R Documentation |
Forecast a fitted DSHW model.
## S3 method for class 'DSHW'
forecast(object, new_data, specials = NULL, ...)
object |
A fitted |
new_data |
A |
specials |
Parsed specials. Currently not used. |
... |
Additional arguments. Currently not used. |
A vector of forecast distributions.
Other DSHW:
DSHW(),
fitted.DSHW(),
model_sum.DSHW(),
residuals.DSHW()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.