View source: R/separate_mhmm.R
| separate_mhmm | R Documentation |
The separate_mhmm function reorganizes the parameters of a mhmm object
into a list where each list component is an object of class hmm consisting of the
parameters of the corresponding cluster.
separate_mhmm(model)
model |
Mixture hidden Markov model of class |
List with components of class hmm.
build_mhmm() and fit_model()
for building and fitting MHMMs; and mhmm_biofam() for
more information on the model used in examples.
# Loading mixture hidden Markov model (mhmm object)
# of the biofam data
data("mhmm_biofam")
# Separate models for clusters
sep_hmm <- separate_mhmm(mhmm_biofam)
# Plotting the model for the first cluster
plot(sep_hmm[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.