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

stsm_constraints

Set the inequality constraints for estimation


Description

Inequality constraints: ineqA

Usage

stsm_constraints(
  prior,
  par,
  freq,
  unconstrained,
  det_trend,
  det_drift,
  det_cycle,
  det_seas,
  det_obs,
  saturating_growth
)

Arguments

prior

A data table created by stsm_prior

par

parameter values for the state space model

freq

Frequency of the data

unconstrained

Whether to remove inequality constraints on the trend during estimation

det_trend

Set the trend error variance to 0 (deterministic trend)

det_drift

Set the drift error variance to 0 (deterministic drift)

det_cycle

Set the cycle error variance to 0 (deterministic cycle)

det_seas

Set the seasonality error variances to 0 (deterministic seasonality)

det_obs

Set the observation equation error variance to 0 (deterministic observation equation)

saturating_growth

Force the growth rate to converge to 0 in the long term

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.