lmer-class: Mixed Model Representations and *mer Methods
Description
The mer
class is mixed-effects representation using a
blocked, sparse, symmetric, column-oriented matrix and dense
matrices. The lmer
class extends mer
to represent a
fitted linear mixed-effects model. The summary.mer
and
summary.lmer
classes represent summaries of these objects. The
coef.lmer
and ranef.lmer
classes represent fixed and
random effect coefficients.Usage
## S3 method for class 'mer':
logLik(object, REML = object@method == "REML", \dots)
## S3 method for class 'mer':
vcov(object, REML = object@method == "REML",
useScale = object@useScale, \dots)
Arguments
object
object of class mer
or lmer
.
REML
logical indicating if REML should be used.
useScale
logical indicating if a scale should be computed and
used; otherwise sc <- 1
is used.
...
potential further arguments passed to methods.
Objects from the Class
Objects can be created by calls of the form new("lmer", ...)
or, more commonly via the lmer
function.See Also
lmer()
produces these objects.
VarCorr
for extracting the variance and
correlation components of the random-effects terms.Examples
Run this code(fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject),
data = sleepstudy))
logLik(fm2)
(V2 <- vcov(fm2))
Run the code above in your browser using DataLab