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, ...)
## S3 method for class 'hmm'
posterior_probs(model, ...)
## S3 method for class 'mhmm'
posterior_probs(model, ...)
## S3 method for class 'nhmm'
posterior_probs(model, ...)
## S3 method for class 'mnhmm'
posterior_probs(model, ...)
model |
A hidden Markov model object. |
... |
Ignored. |
A data frame of posterior probabilities for each state and sequence.
# Load a pre-defined MHMM
data("mhmm_biofam")
# Compute posterior probabilities
pb <- posterior_probs(mhmm_biofam)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.