| ULUstateSample_cpp | R Documentation |
Sample hidden states from hidden Markov multilinear model using forward filtering backward sampling algorithm.
ULUstateSample_cpp(m, s, ZMUt, s2, P, SOS_random)
m |
Number of breaks |
s |
Current state vector (not used, kept for interface) |
ZMUt |
List of (Z - MU) matrices for each state |
s2 |
Vector of error variances for each state |
P |
Transition probability matrix |
SOS_random |
Whether to apply single observation state randomization |
List containing: s (state vector), ps (state probabilities), SOS (flag)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.