Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stsm_init_vals

Get initial values for the Kalman filter


Description

Get initial values for the Kalman filter

Usage

stsm_init_vals(
  y,
  par,
  freq,
  trend,
  decomp = "",
  seasons = NULL,
  prior = NULL,
  cycle = NULL
)

Arguments

y

an object created from stsm_detect_frequency

par

parameter values for the state space model

freq

Frequency of the data

trend

Trend specification ("random-walk", "random-walk-drift", "double-random-walk", "random-walk2").

decomp

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

seasons

The seasonal periods to split the seasonality into

prior

A data table created by stsm_prior

cycle

The cycle period

Value

list containing the initial values for the Kalman filter


autostsm

Automatic Structural Time Series Models

v1.3
GPL (>= 2)
Authors
Alex Hubbard
Initial release
2021-05-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.