Creates a Seasonal-Trend decomposition using Loess model.

STLModel(s, trend = TRUE, robust = FALSE)

Arguments

s

Seasonal period

trend

Whether to include trend component (default: TRUE)

robust

Whether to use robust fitting (default: FALSE)

Value

An STLModel object

Examples

if (FALSE) { # \dontrun{
# Monthly seasonality
model <- STLModel(s = 12)

# Robust STL
model <- STLModel(s = 12, robust = TRUE)
} # }