logLik: Log-likelihood of an smn.lmm and smsn.lmm models

logLikR Documentation

Log-likelihood of an smn.lmm and smsn.lmm models

Description

It returns the log-likelihood value of the linear mixed model represented by object evaluated at the estimated coefficients.

Usage

## S3 method for class 'SMN'
logLik(object, ...)
## S3 method for class 'SMSN'
logLik(object, ...)

Arguments

object

An object inheriting from class SMN or SMSN

...

Additional arguments.

Value

The log-likelihood value of the model represented by object evaluated at the estimated coefficients.

See Also

smn.lmm, smsn.lmm, criteria

Examples

fm1 = smn.lmm(distance ~ age+Sex, data=nlme::Orthodont, groupVar="Subject")
logLik(fm1)

fernandalschumacher/lmmsmsn documentation built on Jan. 21, 2025, 1:24 a.m.