View source: R/methods-fable.R
| forecast.TBATS | R Documentation |
Forecast a fitted TBATS model.
## S3 method for class 'TBATS'
forecast(object, new_data, specials = NULL, ...)
object |
A fitted |
new_data |
A |
specials |
Parsed specials. Currently not used. |
... |
Additional arguments. Currently not used. |
This method is used by forecast() when forecasting a mable containing
a TBATS model.
A vector of forecast distributions.
Other TBATS:
TBATS(),
fitted.TBATS(),
model_sum.TBATS(),
residuals.TBATS()
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("TBATS" = TBATS(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.