Creates an Error-Trend-Season exponential smoothing model.

ETSModel(
  error_type = "A",
  trend_type = "N",
  season_type = "N",
  s = NULL,
  damped = FALSE
)

Arguments

error_type

Error type: "A" (additive), "M" (multiplicative), or "N" (none)

trend_type

Trend type: "A" (additive), "M" (multiplicative), "Ad" (damped additive), "Md" (damped multiplicative), or "N" (none)

season_type

Season type: "A" (additive), "M" (multiplicative), or "N" (none)

s

Seasonal period (required if season_type is not "N")

damped

Whether to use damped trend (default: FALSE)

Value

An ETSModel object

Examples

if (FALSE) { # \dontrun{
# Simple exponential smoothing (A,N,N)
model <- ETSModel(error_type = "A", trend_type = "N", season_type = "N")

# Holt's linear trend (A,A,N)
model <- ETSModel(error_type = "A", trend_type = "A", season_type = "N")

# Holt-Winters additive (A,A,A)
model <- ETSModel(
  error_type = "A", trend_type = "A", season_type = "A", s = 12
)

# Holt-Winters multiplicative (M,M,M)
model <- ETSModel(
  error_type = "M", trend_type = "M", season_type = "M", s = 12
)
} # }