View source: R/posterior_probs.R
posterior_probs | R Documentation |
Function posterior_probs
computes the posterior probabilities of hidden states of
a (mixture) hidden Markov model.
posterior_probs(model, log_space = FALSE)
model |
A (mixture) hidden Markov model of class |
log_space |
Compute posterior probabilities in logarithmic scale. The default is |
Posterior probabilities. In case of multiple observations, these are computed independentlsy for each sequence.
# Load a pre-defined MHMM
data("mhmm_biofam")
# Compute posterior probabilities
pb <- posterior_probs(mhmm_biofam)
# Locally most probable states for the first subject:
pb[, , 1]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.