Learn R Programming

hmmTMB (version 1.0.2)

logLik.HMM: logLik function for SDE objects

Description

This function makes it possible to call generic R methods such as AIC and BIC on HMM objects. It is based on the number of degrees of freedom of the *conditional* AIC (rather than marginal AIC), i.e., including degrees of freedom from the smooth/random effect components of the model.

Usage

# S3 method for HMM
logLik(object, ...)

Value

Maximum log-likelihood value for the model, with attributes df (degrees of freedom) and nobs (number of observations)

Arguments

object

HMM model object

...

For compatibility with S3 method