forecast.TBATS: Forecast a TBATS model

View source: R/methods-fable.R

forecast.TBATSR Documentation

Forecast a TBATS model

Description

Forecast a fitted TBATS model.

Usage

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

Arguments

object

A fitted TBATS model object.

new_data

A tsibble containing future time points.

specials

Parsed specials. Currently not used.

...

Additional arguments. Currently not used.

Details

This method is used by forecast() when forecasting a mable containing a TBATS model.

Value

A vector of forecast distributions.

See Also

Other TBATS: TBATS(), fitted.TBATS(), model_sum.TBATS(), residuals.TBATS()

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("TBATS" = TBATS(value, periods = c(24, 168)))

forecast(model_frame, h = 24)


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