Concepedia

Publication | Open Access

Fitting Linear Mixed-Effects Models Using<b>lme4</b>

81.1K

Citations

28

References

2015

Year

TLDR

Linear mixed‑effects models are fit in R using the lmer function of lme4, which takes a formula specifying fixed and random effects and data to construct a numerical representation for evaluating profiled deviance or REML criteria. The paper outlines the model structure, the steps for evaluating the profiled deviance or REML criterion, and the class architecture that represents such models. The authors describe how the profiled deviance or REML criterion is optimized via constrained R functions to estimate parameters, and provide a class framework that users can extend for specialized mixed‑effects models.

Abstract

Maximum likelihood or restricted maximum likelihood (REML) estimates of the parameters in linear mixed-effects models can be determined using the lmer function in the lme4 package for R. As for most model-fitting functions in R, the model is described in an lmer call by a formula, in this case including both fixed- and random-effects terms. The formula and data together determine a numerical representation of the model from which the profiled deviance or the profiled REML criterion can be evaluated as a function of some of the model parameters. The appropriate criterion is optimized, using one of the constrained optimization functions in R, to provide the parameter estimates. We describe the structure of the model, the steps in evaluating the profiled deviance or REML criterion, and the structure of classes or types that represents such a model. Sufficient detail is included to allow specialization of these structures by users who wish to write functions to fit specialized linear mixed models, such as models incorporating pedigrees or smoothing splines, that are not easily expressible in the formula language used by lmer.

References

YearCitations

2000

352.8K

2006

10.2K

2001

9.4K

2015

6K

1999

5.5K

1997

4.4K

1946

4.3K

1984

2.7K

2003

1.4K

1973

1.4K

Page 1