Description Usage Arguments Value See Also
View source: R/wrappers.R View source: R/deprecated.R
Implementation of Kim (1994) filter, an extension to Kalman filter for dynamic linear models with Markov-switching. Documentation is incomplete, rudimentary and needs to be rechecked!
Kim filtering
1 2 3 |
y |
Data matrix (Txn) |
R |
Error covariance for measurement equation |
Q |
Error covariance for state equation |
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 variance |
p |
Transition probability matrix |
F |
System matrix for measurement equation |
A |
Transition matrix for state equation |
Filtered states and covariances with associated probability matrices.
This function returns the same output as KimFilterCpp
.
However, it converts certain elements of the Kim Filter to standard multi-dimensional
R arrays and so its outputs can be used as inputs for KimSmoother
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.