lmer-class

0th

Percentile

Mixed Model Representations and *mer Methods

The mer class is mixed-effects representation using a sparse, symmetric, column-oriented matrix and several 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.

Keywords
classes
Usage
## S3 method for class 'mer':
logLik(object, REML = object@status["REML"], \dots)
## S3 method for class 'mer':
vcov(object, REML = object@status["REML"], \dots)
Arguments
object
object of class mer or lmer.
REML
logical indicating if REML should be 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.

Aliases
  • lmer-class
  • glmer-class
  • mer-class
  • lmer2-class
  • glmer2-class
  • coef.lmer-class
  • summary.mer-class
  • summary.lmer2-class
  • summary.lmer-class
  • summary.lmer2-class
  • summary.glmer-class
  • ranef.lmer-class
  • anova,mer-method
  • anova,lmer2-method
  • coef,mer-method
  • coef,mer-method
  • coerce,lmer,dsTMatrix-method
  • coerce,mer,dtCMatrix-method
  • coerce,mer,pMatrix-method
  • chol,lmer,ANY-method
  • confint,mer-method
  • deviance,mer-method
  • deviance,lmer2-method
  • fitted,mer-method
  • formula,mer-method
  • logLik,mer-method
  • logLik,lmer2-method
  • plot,coef.lmer-method
  • plot,ranef.lmer-method
  • print,mer-method
  • print,lmer2-method
  • qqmath,ranef.lmer-method
  • resid,glmer-method
  • resid,lmer-method
  • residuals,glmer-method
  • residuals,lmer-method
  • show,mer-method
  • show,lmer2-method
  • simulate,mer-method
  • simulate,lmer2-method
  • summary,mer-method
  • summary,lmer2-method
  • terms,lmer-method
  • update,mer-method
  • vcov,mer-method
  • vcov,lmer2-method
  • with,lmer-method
  • deviance,summary.mer-method
  • deviance,summary.lmer2-method
  • logLik,summary.mer-method
  • logLik,summary.lmer2-method
  • vcov,summary.mer-method
  • vcov,summary.lmer2-method
  • summary,summary.mer-method
  • summary,summary.lmer2-method
Examples
(fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject),
             data = sleepstudy))
print(fm2, digits = 10, corr = FALSE) # more precision; no corr.matrix

logLik(fm2)
(V2 <- vcov(fm2))
str(resid(fm2))

## Simulate 'Reaction' according to the fitted model:
dim(ss <- simulate(fm2, nsim = 200, seed = 101)) ## -> 180 x 200
Documentation reproduced from package lme4, version 0.99875-9, License: GPL version 2 or later

Community examples

Looks like there are no examples yet.