Description Usage Arguments Value
Implementation of Kim filter (1994), an extension to Kalman filter for dynamic linear models with Markov-switching parameters. Currently, Markov switching is assumed to happen only in observation and/or transition matrices.
1 | KimFilterCpp(y, R, Q, F1, A1, x0, P0, p)
|
y |
Data matrix ( |
R |
Observation equation covariance |
Q |
State equation covariance |
F1 |
Array of observation matrices, one matrix per state |
A1 |
Array of transition matrices, one matrix per state |
x0 |
Initial condition for state vector |
P0 |
Initial condition for state covariance matrix |
p |
Markov transition probability matrix |
a list with estimates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.