Estimating power in (generalized) linear mixed models: An open introduction and tutorial in R
Open accessPublished version of a preprint
The DOI matches its Crossref record; 43 of the 44 references it cites were found in a registry or an index.
Abstract
Mixed-effects models are a powerful tool for modeling fixed and random effects simultaneously, but do not offer a feasible analytic solution for estimating the probability that a test correctly rejects the null hypothesis. Being able to estimate this probability, however, is critical for sample size planning, as power is closely linked to the reliability and replicability of empirical findings. A flexible and very intuitive alternative to analytic power solutions are simulation-based power analyses. Although various tools for conducting simulation-based power analyses for mixed-effects models are available, there is lack of guidance on how to appropriately use them. In this tutorial, we discuss how to estimate power for mixed-effects models in different use cases: first, how to use models that were fit on available (e.g. published) data to determine sample size; second, how to determine the number of stimuli required for sufficient power; and finally, how to conduct sample size planning without available data. Our examples cover both linear and generalized linear models and we provide code and resources for performing simulation-based power analyses on openly accessible data sets. The present work therefore helps researchers to navigate sound research design when using mixed-effects models, by summarizing resources, collating available knowledge, providing solutions and tools, and applying them to real-world problems in sample sizing planning when sophisticated analysis procedures like mixed-effects models are outlined as inferential procedures.
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
Figures








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?
The source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“We determined this sample size on the basis of the pilot data, which are reported in preregistration (https://osf.io/hv29w).”
From Cognitive Maps for a Non-Euclidean Environment: Path Integration and Spatial Memory on a Sphere (2024) · cites this paper as Kumle et al., 2021
Experimental — accuracy not yet measured
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
Statistical power analysis for the behavioral sciences
(1990) · Computers, Environment and Urban Systems · doi:10.1016/0198-9715(90)90050-4 · Cited by 65,269
Why Most Published Research Findings Are False
Ioannidis, J. P. A. (2005) · PLoS Medicine · doi:10.1371/journal.pmed.0020124 · Cited by 10,505
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 1×
“This paper is designed to meet the needs of researchers who have some experience with mixed-effects modeling, and thus does not discuss topics such as model selection or optimal random-effects structure (Barr, Levy, Scheepers, & Tily, 2013; Bates, Kliegl, Vasishth, & Baayen, 2015a).”
BackgroundMixed-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 · cited 6×
“…as well as generalized linear mixed models (GLMMs), are a popular and powerful choice in cognitive research, as they allow between-subject and between-item variance to be estimated simultaneously (for a discussion see Baayen, Davidson, & Bates, 2008; Kliegl, Wei, Dambacher, Yan, & Zhou, 2011).”
BackgroundMethodInfluentialWhy Most Published Research Findings Are False
Ioannidis, J. P. A. (2005) · CHANCE · doi:10.1080/09332480.2005.10722754 · Cited by 4,702
Analyzing Linguistic Data: A Practical Introduction to Statistics using R
Baayen, R. H. (2008) · doi:10.1017/cbo9780511801686 · Cited by 3,253 · cited 6×
“Since the hypothetical study in Scenario 3 closely mirrors the lexdec data (Baayen, 2007), we can fit a similar model to these data and use it to inform the beta coefficients and random variances of our artificial model (see Notebook 3).”
BackgroundMethodInfluentialSIMR : an R package for power analysis of generalized linear mixed models by simulation
Green, P., & MacLeod, C. J. (2016) · Methods in Ecology and Evolution · doi:10.1111/2041-210x.12504 · Cited by 2,467 · cited 5×
“For the sake of completeness, Notebook 1 additionally includes examples using the extremely flexible simr package (Green & MacLeod, 2016) .”
MethodInfluentialA brief introduction to mixed effects modelling and multi-model inference in ecology
Harrison, X. A., Donaldson, L., Correa-Cano, M. E., Evans, J., Fisher, D. N., Goodwin, C. E. D., Robinson, B. S., Hodgson, D. J., & Inger, R. (2018) · PeerJ · doi:10.7717/peerj.4794 · Cited by 2,094 · cited 2×
“…resources aimed at using (G)LMMs (e.g. Baayen et al., 2008; Bates, Mächler, Bolker, & Walker, 2014; DeBruine & Barr, 2021; Goldstein, 2007; Harrison et al., 2018), but far less guidance is available for experimental psychologists who want to estimate power for (G)LMMs (Brysbaert &…”
BackgroundMethodAnalyzing linguistic data : a practical introduction to statistics using R
Baayen, R. H. (2008) · Cited by 2,069
Research works printed but not linked: 1
- Bates DM Mächler M Zurich E Bolker BM Walker SC Fitting Linear Mixed-Effects Models Using lme4 Journal of Statistical Software 2015b 67 10.18637/jss.v067.i01 · DOI · Paper page
Cited by
Colom-Cadena, M., Davies, C., Sirisi, S., Lee, J.-E., Simzer, E. M., Tzioras, M., Querol-Vilaseca, M., Sánchez-Aced, É., Chang, Y. Y., Holt, K., et al. (2023) · Neuron · doi:10.1016/j.neuron.2023.04.020 · Cited by 224
Langenberg, B., Janczyk, M., Koob, V., Kliegl, R. M., & Mayer, A. (2022) · Behavior Research Methods · doi:10.3758/s13428-022-01902-8 · Cited by 107
The Association Between Emotion Regulation, Physiological Arousal, and Performance in Math Anxiety
Pizzie, R. G., & Kraemer, D. J. M. (2021) · Frontiers in Psychology · doi:10.3389/fpsyg.2021.639448 · Cited by 79
Best practices for cleaning eye movement data in reading research
Eskenazi, M. A. (2023) · Behavior Research Methods · doi:10.3758/s13428-023-02137-x · Cited by 43
“Power was estimated using the mixedpower package in R (Kumle et al., 2021).”
Smiley, K. O., Munley, K. M., Aghi, K., Lipshutz, S. E., Patton, T. M., Pradhan, D. S., Solomon‐Lane, T. K., & Sun, S. D. (2023) · Hormones and Behavior · doi:10.1016/j.yhbeh.2023.105445 · Cited by 63
Metadata
- Authors
- Kumle, L., Võ, M. L.-H., & Draschkow, D.
- Affiliations
- Goethe University Frankfurt (DE)
- University of Oxford (GB)
- Corresponding author
- Kumle, Levi
- Venue
- Behavior Research Methods
- Published
- 2021-05-05
- Volume
- 53
- Issue
- 6
- Pages
- 2528-2543
- ISSN
- 1554-351X (ISSN-L)
- 1554-3528
- PMC
- PMC8613146
- OpenAlex
- W3159289228
- Semantic Scholar
- c4834872b5d764b190ff84bdc700bf2359c44caa
- Cited by
- 552
- References
- 44
- Citations by year
- 2026: 112 · 2025: 149 · 2024: 123 · 2023: 88 · 2022: 64 · 2021: 16
- FWCI
- 54.26
- Type
- journal article
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- cc-by
- creativecommons.org/licenses/by/4.0 (tdm)
- creativecommons.org/licenses/by/4.0 (vor)
- Locations
- Behavior Research Methods (publishedVersion, cc-by)
- PubMed Central (publishedVersion, cc-by)
- PubMed (publishedVersion)
- Publication Server of Goethe University Frankfurt am Main (Goethe University Frankfurt) (submittedVersion, cc-by)
- PsyArXiv (OSF Preprints) (submittedVersion, cc-by)
- Funders
- Wellcome Trust (203139/Z/16/Z, 104571, 104571/Z/14/Z, 203139, 203139/Z/16)
- National Institute for Health and Care Research (203139/Z/16/Z)
- Deutsche Forschungsgemeinschaft (SFB/TRR 135, TRR 135, 222641018)
- Topics
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods and Bayesian Inference
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods in Clinical Trials
- Social Sciences › Decision Sciences › Statistics, Probability and Uncertainty › Meta-analysis and systematic reviews
- Keywords
- statistical power, mixed models, generalized linear mixed models, sample size determination, simulation-based power analysis, replicability, number of stimuli
- MeSH terms
- Computer Simulation, Humans, Reproducibility of Results, Linear Models, Sample Size
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
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.