Description Usage Arguments Value Author(s) Examples
View source: R/package_functions.R
State space model for markov switching mean Creates a state space model in list form yt = At + Ht * Bt + e_t Bt = D_t + Ft * B_tl + u_t
1 2 | SSmodel_ms(par, yt, n_states, ms_var = F, panelID = NULL,
timeID = NULL)
|
par |
Vector of named parameter values |
yt |
Multivariate time series of data values |
n_states |
Number of states to include in the Markov switching model |
ms_var, |
Logical, T for Markow switching variance, default is F |
panelID |
Column name that identifies the cross section of the data |
timeID |
Column name that identifies the date |
List of space space matrices
Alex Hubbard (hubbard.alex@gmail.com)
1 | SSmodel_ms(par = theta, yt = yt, n_states = 2, panelID = "panel", timeID = "date")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.