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

stsm_init_pars

Get initial parameter estimates for estimation


Description

Get initial parameter estimates for estimation

Usage

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

Arguments

y

an object created from stsm_detect_frequency

freq

Frequency of the data

trend

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

cycle

The period for the longer-term cycle

decomp

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

seasons

The seasonal lengths to split the seasonality into

prior

A data table created by stsm_prior

Value

named vector containing the initial parameter estimates for estimation


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.