Fitting Linear Mixed-Effects Models Using lme4
By Douglas M. Bates, Martin Mächler, M. Machler, Benjamin M. Bolker, Steven C. Walker. 2014
85,316 citations recorded by the source corpus.
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.
Subfields: Artificial Intelligence, Experimental and Cognitive Psychology, Statistics and Probability
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
- Yejin Choi
- Mohit Bansal
- Percy Liang
- Luke S. Zettlemoyer
- Noah A. Smith
- Jianfeng Gao
- Kyunghyun Cho
- Yoshua Bengio
In Experimental and Cognitive Psychology
- Paul-Christian Burkner
- Francis L. Huang
- Jalal Al-Tamimi
- Steven G. Luke
- Manuel Koller
- Russell V. Lenth
- S. Klesse
- Marc Brysbaert
In Statistics and Probability
- Paul-Christian Burkner
- H. Schielzeth
- Aki Vehtari
- Shinichi Nakagawa
- Andrew Gelman
- Robert A. I. Davies
- Lotte Meteyard
- X. Harrison
Citations in the corpus
- Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned (2022, methodology): “To rule out these confounds, we fit a linear mixed effects (or random intercept) model with LME4 [8].”
- Can language models learn from explanations in context? (2022, methodology): “All plots and analyses were performed in R using the tidyverse (Wickham et al., 2019) and lme4 (Bates et al., 2015) libraries.”
- Manipulating and Measuring Model Interpretability (2018, methodology): “0468 [7] Douglas Bates, Martin Mächler, Ben Bolker, and Steve Walker.”
- Multivariable association discovery in population-scale meta-omics studies (2021, methodology): “nb() function from the MASS R package [49] for fixed effects and the glmer() function from the R package lme4 [50] for random effects, whereas the ZINB evaluation used the zeroinfl() function from the R package pscl [51].”
- The role of spatial, verbal, numerical, and general reasoning abilities in complex word problem solving for young female and male adults (2020, methodology): “All analyses were conducted in R (R Core Team 2008) using the ‘lme4’ package (Bates et al. 2015).”
- Artificial Intelligence in Education: 20th International Conference, AIED 2019, Chicago, IL, USA, June 25-29, 2019, Proceedings, Part II (2019, positive): “We used glmer function with nAGQ=0 argument from lme4 [3] to fit GLMER models.”
- robustlmm : An R Package for Robust Estimation of Linear Mixed-Effects Models (2016, methodology): “Bates (2010) is a general introduction to mixed modeling using the R package lme4 (Bates et al. 2015).”
- Power Analysis and Effect Size in Mixed Effects Models: A Tutorial (2018, background): “Table 2: Outcome of the lmer analysis (Bates et al., 2015) of the Adelman et al.”