Learn R Programming

autostsm (version 1.1)

stsm_harmonics: Get harmonics for the seasons

Description

Get harmonics for the seasons

Usage

stsm_harmonics(freq, decomp = "", seasons = NULL, wavelet = FALSE)

Arguments

freq

Frequency of the data

decomp

Decomposition model ("tend-cycle-seasonal", "trend-seasonal", "trend-cycle", "trend-noise")

seasons

The seasonal periods: i.e. c(365.25, 7 if yearly and weekly seasonality). Default is NULL and will be estimated via wavelet analysis.

wavelet

Whether seasons were detected using wavelet analysis

Value

list containing the initial values for the Kalman filter