powered by
Function posterior_probs computes the posterior probabilities of hidden states of a (mixture) hidden Markov model.
posterior_probs
posterior_probs(model, log_space = FALSE)
A (mixture) hidden Markov model of class hmm or mhmm.
hmm
mhmm
Compute posterior probabilities in logarithmic scale. The default is FALSE.
FALSE
Posterior probabilities. In case of multiple observations, these are computed independentlsy for each sequence.
# NOT RUN { # 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] # }
Run the code above in your browser using DataLab