Description Usage Arguments Details
This function extends in a sense dfm
in that it allows
observation or transition matrices to follow a Markov-switching
process, so that they are state-dependent.
1 2 |
data |
Data matrix |
nf |
Number of factors |
ns |
Number of states |
x0 |
Initial value for state vector |
P0 |
Initial value for state covariance, i.e. uncertainty of the initial state value vector |
init |
List with initial values for A, F, R, p. If not supplied,
|
Note that this method does not implement Chang-Jin Kim algorithm. It is based
on the same idea as the dfm
function with the adaptation that
Kalman filter is replaced by Kim filter which is able to deal with multiple
states. Optimization is done over a list of parameters by a simple call to
optim
instead of an EM-algorithm.
Currently, state equation covariance matrix is restricted to identity.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.