logLik_nhmm: Log-likelihood of a Non-homogeneous Hidden Markov Model

logLik.nhmmR Documentation

Log-likelihood of a Non-homogeneous Hidden Markov Model

Description

Log-likelihood of a Non-homogeneous Hidden Markov Model

Usage

## S3 method for class 'nhmm'
logLik(object, partials = FALSE, ...)

## S3 method for class 'mnhmm'
logLik(object, partials = FALSE, ...)

Arguments

object

A hidden Markov model.

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.

...

Ignored.

Value

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


helske/seqHMM documentation built on June 13, 2025, 8:23 a.m.