Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

logLik.mhmm

Log-likelihood of the Mixture Hidden Markov Model


Description

Function logLik.mhmm computes the log-likelihood value of a mixture hidden Markov model.

Usage

## S3 method for class 'mhmm'
logLik(object, partials = FALSE, threads = 1,
  log_space = FALSE, ...)

Arguments

object

A mixture hidden Markov model of class mhmm.

partials

Return a vector containing the individual contributions of each sequence to the total log-likelihood. The default is FALSE, which returns the sum of all log-likelihood components.

threads

Number of threads to use in parallel computing. The default is 1.

log_space

Make computations using log-space instead of scaling for greater numerical stability at the cost of decreased computational performance. The default is TRUE.

...

Ignored.

Value

Log-likelihood of the mixture hidden Markov model. This is an object of class logLik with attributes nobs and df inherited from the model object.

See Also

build_mhmm and fit_model for building and fitting mixture Hidden Markov models.


seqHMM

Mixture Hidden Markov Models for Social Sequence Data and Other Multivariate, Multichannel Categorical Time Series

v1.0.14
GPL (>= 2)
Authors
Jouni Helske [aut, cre] (<https://orcid.org/0000-0001-7130-793X>), Satu Helske [aut] (<https://orcid.org/0000-0003-0532-0153>)
Initial release
2019-10-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.