An Introduction to Linear Mixed-Effects Modeling in R
Open accessThe DOI matches its Crossref record; 36 of the 36 references it cites were found in a registry or an index.
Abstract
This Tutorial serves as both an approachable theoretical introduction to mixed-effects modeling and a practical introduction to how to implement mixed-effects models in R. The intended audience is researchers who have some basic statistical knowledge, but little or no experience implementing mixed-effects models in R using their own data. In an attempt to increase the accessibility of this Tutorial, I deliberately avoid using mathematical terminology beyond what a student would learn in a standard graduate-level statistics course, but I reference articles and textbooks that provide more detail for interested readers. This Tutorial includes snippets of R code throughout; the data and R script used to build the models described in the text are available via OSF at https://osf.io/v6qag/ , so readers can follow along if they wish. The goal of this practical introduction is to provide researchers with the tools they need to begin implementing mixed-effects models in their own research.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“LMMs can use all available data for each subject while also handling missing data more appropriately (Brown, 2021;Gueorguieva & Krystal, 2004).”
From Effects of mindfulness meditation and Acceptance and commitment therapy in patients with obstructive sleep apnea with residual excessive sleepiness: A randomized controlled pilot study (2023) · cites this paper as Brown, 2021
In the citing paper
“Despite the unbalanced EDSS data, the mixed-effects models allowed us to examine the impact of CHIT1 on disability progression over time while also considering variability within and across MS patients and time as well as controlling for relevant variables81.”
From CHIT1 at diagnosis predicts faster disability progression and reflects early microglial activation in multiple sclerosis (2024) · cites this paper as [81]
In the citing paper
“We analyzed our data by means of mixed models (i.e., with experimental conditions as factors), as they are more flexible compared to repeated measures ANOVAs with betweenlevel factors-especially when it comes to handling missing data (Brown, 2021).”
From A Randomized Controlled Study on the Effectiveness of Plain Language Summaries of Psychological Meta-Analyses: Targeting Knowledge, User Experience, Relevance, and Trust (2025) · cites this paper as Brown, 2021
In the citing paper
“A likelihood-ratio test (Brown 2021) using the ANOVA function in the lmerTest Rpackage (v.3.1-3, Kuznetsova et al. 2017) was conducted to compare all alternative models to the baseline (see Table 1 for all the results).”
From What Heritage Bilinguals Tell Us about the Language of Emotion (2022) · cites this paper as Brown 2021
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Fitting Linear Mixed-Effects Models Using lme4
Bates, D., Mächler, M., Bolker, B., & Walker, S. (2015) · Journal of Statistical Software · doi:10.18637/jss.v067.i01 · Cited by 86,835
lmerTest Package: Tests in Linear Mixed Effects Models
Kuznetsova, A., Brockhoff, P. B., & Christensen, R. H. B. (2017) · Journal of Statistical Software · doi:10.18637/jss.v082.i13 · Cited by 24,346
Wickham, H., Averick, M., Bryan, J., Chang, W., McGowan, L., François, R., Grolemund, G., Hayes, A., Henry, L., Hester, J., et al. (2019) · Journal of Open Source Software · doi:10.21105/joss.01686 · Cited by 22,138
Multilevel analysis : an introduction to basic and advanced multilevel modeling
Snijders, T. A. B., & Bosker, R. (1999) · Cited by 14,026
Hierarchical Linear Models: Applications and Data Analysis Methods
Davidian, M. (2003) · Journal of the American Statistical Association · doi:10.1198/jasa.2003.s288 · Cited by 13,723
Random effects structure for confirmatory hypothesis testing: Keep it maximal
Barr, D. J., Levy, R., Scheepers, C., & Tily, H. J. (2013) · Journal of Memory and Language · doi:10.1016/j.jml.2012.11.001 · Cited by 10,328 · cited 4×
“…in this example, the random-effects structure including random intercepts for both participants and items, as well as by-participant random slopes for word difficulty, would represent the maximal random-effects structure justified by the design (see Barr et al., 2013; Matuschek et al., 2017).”
BackgroundInfluentialbrms : An R Package for Bayesian Multilevel Models Using Stan
Bürkner, P.-C. (2017) · Journal of Statistical Software · doi:10.18637/jss.v080.i01 · Cited by 9,476
Mixed-effects modeling with crossed random effects for subjects and items
Baayen, R. H., Davidson, D. J., & Bates, D. M. (2008) · Journal of Memory and Language · doi:10.1016/j.jml.2007.12.005 · Cited by 8,540
(2010) · Cited by 7,034
Simmons, J. P., Nelson, L. D., & Simonsohn, U. (2011) · Psychological Science · doi:10.1177/0956797611417632 · Cited by 6,567
Research works printed but not linked: 1
- S Lee, S Ditko, Amazing Fantasy. 1151962Comic book
Cited by
Contrast coding choices in a decade of mixed models
Brehm, L., & Alday, P. M. (2022) · Journal of Memory and Language · doi:10.1016/j.jml.2022.104334 · Cited by 167
“…good resources for beginners: Meteyard and Davies (2020) use a meta-analytic approach to showcase the uncertainties that researchers have about using mixed models and present a set of clear reporting guidelines, and Brown (2021) presents a complete MEM tutorial in the R programming language.”
Background(2013) · Natural language processing · doi:10.1075/nlp · Cited by 77
Lee, M. H. J., Montgomery, J., & Lai, C. K. (2024) · ACM Conference on Fairness, Accountability, and Transparency (FAccT) · doi:10.1145/3630106.3658975 · Cited by 106
“7 We also fitted additional un-pre-registered models to facilitate interpretation of race/ethnicity and gender fixed effects in the presence of interactions [8].”
MethodNeuromuscular recruitment strategies of the vastus lateralis according to sex
Guo, Y., Jones, E. J., Inns, T. B., Ely, I. A., Stashuk, D. W., Wilkinson, D. J., Smith, K. E., Piasecki, J., Phillips, B. E., Atherton, P. J., et al. (2022) · Acta Physiologica · doi:10.1111/apha.13803 · Cited by 78
Guo, X., Tavakoli, A., Angulo, A. V., Robartes, E., Chen, T. D., & Heydarian, A. (2022) · Transportation Research Part F Traffic Psychology and Behaviour · doi:10.1016/j.trf.2022.11.015 · Cited by 59
“LMM is centered around the idea of variability across participants [8, 25].”
Metadata
- Authors
- Brown, V. A.
- Affiliations
- Washington University in St. Louis (US)
- Corresponding author
- Brown, Violet A.
- ORCID
- Brown, Violet A.
- Venue
- Advances in Methods and Practices in Psychological Science
- Publisher
- SAGE Publications
- Published
- 2021-01
- Volume
- 4
- Issue
- 1
- ISSN
- 2515-2459 (ISSN-L)
- 2515-2467
- OpenAlex
- W3044002230
- Cited by
- 576
- References
- 36
- Citations by year
- 2026: 124 · 2025: 159 · 2024: 127 · 2023: 101 · 2022: 59 · 2021: 5
- FWCI
- 54.44
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Licence
- Locations
- Advances in Methods and Practices in Psychological Science (publishedVersion, cc-by-nc)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
- Funders
- national science foundation (DGE-1745038; National Science Foundation Graduate Research Fellowship)
- Topics
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods and Bayesian Inference
- Physical Sciences › Mathematics › Statistics and Probability › Data Analysis with R
- Social Sciences › Economics, Econometrics and Finance › Economics and Econometrics › Spatial and Panel Data Analysis
- Keywords
- linear mixed models, R programming language, hierarchical data, random effects, statistical software implementation, psychological research methods
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: An Introduction to Linear Mixed-Effects Modeling in R. https://app.cochat.ai/papers/10.1177/2515245920960351
- The paper
- Brown, V. A. (2021). An Introduction to Linear Mixed-Effects Modeling in R. Advances in Methods and Practices in Psychological Science. https://doi.org/10.1177/2515245920960351
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.