Description Fields Methods See Also Examples
ModelMixHMM represents an estimated mixture of HMM model.
paramA ParamMixHMM object. It contains the estimated values of the parameters.
statA StatMixHMM object. It contains all the statistics associated to the MixHMM model.
plot(what = c("clustered", "smoothed", "loglikelihood"), ...)Plot method
whatThe type of graph requested:
"clustered" = Clustered curves (field
klas of class StatMixHMM).
"smoothed" = Smoothed signal (field
smoothed of class StatMixHMM).
"loglikelihood" = Value of the log-likelihood for
each iteration (field stored_loglik of class
StatMixHMM).
...Other graphics parameters.
summary(digits = getOption("digits"))Summary method.
digitsThe number of significant digits to use when printing.
ParamMixHMM, StatMixHMM
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(toydataset)
Y <- t(toydataset[,2:ncol(toydataset)])
mixhmm <- emMixHMM(Y = Y, K = 3, R = 3, verbose = TRUE)
# mixhmm is a ModelMixHMM object. It contains some methods such as 'summary' and 'plot'
mixhmm$summary()
mixhmm$plot()
# mixhmm has also two fields, stat and param which are reference classes as well
# Log-likelihood:
mixhmm$stat$loglik
# Means
mixhmm$param$mu
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.