Fitting Linear Mixed-Effects Models using lme4
Douglas Bates, Martin M\"achler, Ben Bolker, Steve Walker

TL;DR
This paper explains how to fit linear mixed-effects models using the lme4 package in R, detailing the model structure, evaluation process, and implementation details for customization.
Contribution
It provides a comprehensive description of the lmer fitting process and data structures, enabling users to develop specialized mixed models beyond standard formulas.
Findings
Efficient evaluation of profiled deviance and REML criteria.
Detailed explanation of model structures and classes.
Guidance for customizing mixed-effects model fitting.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
