logLik(object, REML)
object
|
an object inheriting from class lme , representing
a fitted linear mixed-effects model.
|
REML
|
an optional logical value. If TRUE the restricted
log-likelihood is returned, else, if FALSE , the log-likelihood
is returned. Defaults to FALSE .
|
REML=FALSE
, returns the log-likelihood value of the linear
mixed-effects model represented by object
evaluated at the
estimated coefficients; else, the restricted log-likelihood evaluated
at the estimated coefficients is returned.object
evaluated at the estimated coefficients.lme
library(lme) data(Orthodont) fm1 <- lme(distance ~ Sex * age, Orthodont, random = ~ age) logLik(fm1) logLik(fm1, REML = TRUE)