Description Usage Arguments Value
This function takes in data x assumed to be generated by the HMM hmm
and
outputs the most likely sequence of states that could have generated the
data using global decoding by the Viterbi algorithm.
1 | gam0_viterbi(x, hmm, state_dep_dist_pooled = FALSE)
|
x |
The data to be fit with an HMM in the form of a 3D array. The first index (row) corresponds to time, the second (column) to the variable number, and the third (matrix number) to the subject number. |
hmm |
A list of parameters that specify the gamma HMM, including
|
state_dep_dist_pooled |
A logical variable indiacting whether the
state dependent distribution parameters |
A matrix with each column containing the sequence of states for the given subject.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.