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.
# S3 method for HMM
logLik(object, ...)Maximum log-likelihood value for the model, with attributes
df (degrees of freedom) and nobs (number of observations)
HMM model object
For compatibility with S3 method