Get initial values for the Kalman filter
stsm_init_vals(
y,
par,
freq,
trend,
decomp = "",
seasons = NULL,
prior = NULL,
cycle = 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 seasonal periods to split the seasonality into
A data table created by stsm_prior
The cycle period
list containing the initial values for the Kalman filter