ModelMixHMM-class function

A Reference Class which represents a fitted Mixture of HMM model.

A Reference Class which represents a fitted Mixture of HMM model.

ModelMixHMM represents an estimated mixture of HMM model. class

Fields

  • param: A ParamMixHMM object. It contains the estimated values of the parameters.
  • stat: A StatMixHMM object. It contains all the statistics associated to the MixHMM model.

Methods

  • plot(what = c("clustered", "smoothed", "loglikelihood"), ...): Plot method

     - **`what`**: The 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.

     - **`digits`**: The number of significant digits to use when printing.
    

Examples

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

See Also

ParamMixHMM , StatMixHMM

  • Maintainer: Florian Lecocq
  • License: GPL (>= 3)
  • Last published: 2019-08-06