Learn R Programming

autostsm (version 1.1)

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 = "",
  harmonics = 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")

harmonics

The harmonics to split the seasonality into

prior

A data table created by stsm_prior

Value

named vector containing the initial parameter estimates for estimation