Get initial values for the Kalman filter
stsm_init_vals(
y,
par,
freq,
trend,
decomp = "",
harmonics = NULL,
prior = NULL
)
an object created from stsm_detect_frequency
parameter values for the state space model
Frequency of the data
Trend specification ("random-walk", "random-walk-drift", "double-random-walk", "random-walk2").
Decomposition model ("tend-cycle-seasonal", "trend-seasonal", "trend-cycle", "trend-noise")
The harmonics to split the seasonality into
A data table created by stsm_prior
list containing the initial values for the Kalman filter