Creates a seasonal forecasting model based on similar historical dates.

LSDModel(s, window_width = 1L, trend_correction = FALSE)

Arguments

s

Seasonal period (e.g., 7 for weekly, 12 for monthly)

window_width

Width of the window for averaging similar dates (default: 1)

trend_correction

Whether to apply trend correction (default: FALSE)

Value

An LSDModel object

Examples

if (FALSE) { # \dontrun{
# Weekly seasonality
model <- LSDModel(s = 7)

# Monthly seasonality with window
model <- LSDModel(s = 12, window_width = 2)
} # }