forecast.SMEAN: Forecast a seasonal mean model

View source: R/methods-fable.R

forecast.SMEANR Documentation

Forecast a seasonal mean model

Description

Forecast a fitted SMEAN model.

Usage

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

Arguments

object

A fitted SMEAN 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 SMEAN: SMEAN(), fitted.SMEAN(), model_sum.SMEAN(), residuals.SMEAN()

Examples

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

train_frame <- M4_monthly_data |>
  filter(series == first(series)) |>
  as_tsibble(index = index)

model_frame <- train_frame |>
  model("SMEAN" = SMEAN(value ~ lag("year")))

forecast(model_frame, h = 12)

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