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
The Abuse of Power: The Pervasive Fallacy of Power Calculations for Data Analysis
Hoenig, J. M., & Heisey, D. M. (2001) · The American Statistician · doi:10.1198/000313001300339897 · Cited by 2,046 · cited 3×
“It should also be noted that the use of power analysis generally should be limited to planning studies and should not be used for analyzing or interpreting results (Hoenig & Heisey, 2001; Lenth, 2007).”
BackgroundMethodBalancing Type I error and power in linear mixed models
Matuschek, H., Kliegl, R., Vasishth, S., Baayen, H., & Bates, D. (2017) · Journal of Memory and Language · doi:10.1016/j.jml.2017.01.001 · Cited by 2,010 · cited 4×
“Note that while we work under the assumption that the final random-effect structure has already been selected, the complexity of the random-effect structure has been shown to have an influence on power as well — that is, power decreases with model complexity (Matuschek et al., 2017).”
BackgroundMethodInfluentialEvaluating significance in linear mixed-effects models in R
Luke, S. G. (2017) · Behavior Research Methods · doi:10.3758/s13428-016-0809-y · Cited by 1,704
Equivalence Testing for Psychological Research: A Tutorial
Lakens, D., Scheel, A. M., & Isager, P. M. (2018) · Advances in Methods and Practices in Psychological Science · doi:10.1177/2515245918770963 · Cited by 1,560 · cited 1×
“Until then, guidance can come from previous research, literature, or practical constraints (for a more detailed discussion see Lakens, Scheel, & Isager, 2018).”
MethodPower Analysis and Effect Size in Mixed Effects Models: A Tutorial
Brysbaert, M., & Stevens, M. (2018) · Journal of Cognition · doi:10.5334/joc.10 · Cited by 1,420 · cited 9×
“Instead, we wish to highlight an approach introduced in Brysbaert and Stevens (2018).”
BackgroundMethodInfluentialBeyond Power Calculations: Assessing Type S (Sign) and Type M (Magnitude) Errors
Gelman, A., & Carlin, J. (2014) · Perspectives on Psychological Science · doi:10.1177/1745691614551642 · Cited by 1,343 · cited 1×
“…power for any experimental design depends predominantly on sample size, number of items (or trials), effect size, measurement variability, and the number of comparisons being performed (Coppock, 2013; Gelman & Carlin, 2014) (for a more detailed introduction to statistical power see Cohen, 1988).”
BackgroundBates, D. M., Kliegl, R. M., Vasishth, S., & Baayen, R. H. (2015) · arXiv (Cornell University) · doi:10.48550/arxiv.1506.04967 · Cited by 1,008 · 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).”
BackgroundBrysbaert, M. (2019) · Journal of Cognition · doi:10.5334/joc.72 · Cited by 996 · cited 2×
“7b, suggesting that power can be lower for designs with unbalanced groups (Brysbaert, 2019; Konstantopoulos & Taylor, 2020).”
BackgroundWestfall, J., Kenny, D. A., & Judd, C. M. (2014) · Journal of Experimental Psychology: General · doi:10.1037/xge0000014 · Cited by 928 · cited 4×
“There are various ways to conduct a power analysis for mixed models, with Westfall et al. (2014) and Brysbaert and Stevens (2018) constituting important introductory works in this domain.”
BackgroundMethodInfluentialSzucs, D., & Ioannidis, J. P. A. (2017) · PLOS Biology · doi:10.1371/journal.pbio.2000797 · Cited by 761 · cited 1×
“Given the struggle for reproducibility in various subdomains of psychology (Ioannidis, 2005; Szucs & Ioannidis, 2017; Yong, 2012), adopting effect sizes from published data involves the risk of performing the analyses on inflated effect sizes, which in turn would result in an underpowered design.”
MethodSample Size Planning for Statistical Power and Accuracy in Parameter Estimation
Maxwell, S. E., Kelley, K., & Rausch, J. R. (2008) · Annual Review of Psychology · doi:10.1146/annurev.psych.59.103006.093735 · Cited by 542 · cited 1×
“Statistical power is defined as the probability of rejecting the null hypothesis in favor of an alternative hypothesis when the null hypothesis indeed is false (Johnson, Barry, Ferguson, & Müller, 2015; Maxwell, Kelley, & Rausch, 2008).”
BackgroundExperiments with More Than One Random Factor: Designs, Analytic Models, and Statistical Power
Judd, C. M., Westfall, J., & Kenny, D. A. (2017) · Annual Review of Psychology · doi:10.1146/annurev-psych-122414-033702 · Cited by 466
Yong, E. (2012) · Nature · doi:10.1038/485298a · Cited by 405 · cited 1×
“Given the struggle for reproducibility in various subdomains of psychology (Ioannidis, 2005; Szucs & Ioannidis, 2017; Yong, 2012), adopting effect sizes from published data involves the risk of performing the analyses on inflated effect sizes, which in turn would result in an underpowered design.”
MethodCognitive processing in new and practiced discrete keying sequences
Verwey (2010) · Frontiers in Psychology · doi:10.3389/fpsyg.2010.00032 · Cited by 371
Albers, C., & Lakens, D. (2018) · Journal of Experimental Social Psychology · doi:10.1016/j.jesp.2017.09.004 · Cited by 357 · cited 1×
“One approach is choosing the smallest effect size of interest (SESOI) to run a power analysis — making it possible to design studies which are worthwhile to run, as they have a predetermined power to detect an effect that is of interest (Albers & Lakens, 2018).”
BackgroundMonte Carlo Experiments: Design and Implementation
Paxton, P., Curran, P. J., Bollen, K. A., Kirby, J., & Chen, F. (2001) · Structural Equation Modeling: A Multidisciplinary Journal · doi:10.1207/s15328007sem0802_7 · Cited by 344 · cited 1×
“models, with Westfall et al. (2014) and Brysbaert and Stevens (2018) constituting important introductory works in this domain.”
BackgroundKliegl (2010) · Frontiers in Psychology · doi:10.3389/fpsyg.2010.00238 · Cited by 245 · cited 1×
“…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).”
BackgroundPower analysis for generalized linear mixed models in ecology and evolution
Johnson, P. C. D., Barry, S. J. E., Ferguson, H. M., & Müller, P. (2015) · Methods in Ecology and Evolution · doi:10.1111/2041-210x.12306 · Cited by 243 · cited 4×
“glmm (Johnson et al., 2015)), and that the resources introduced in this tutorial do not cover all available resources for power estimation in (G)LMMs.”
BackgroundMethodInfluentialThe importance of statistical power analysis: an example fromAnimal Behaviour
THOMAS, L., & JUANES, F. (1996) · Animal Behaviour · doi:10.1006/anbe.1996.0232 · Cited by 217 · cited 6×
“As it is possible to simulate the outcome of an experiment, power can be calculated based on the proportion of significant simulations to all simulations (Johnson et al., 2015; Thomas & Juanes, 1996).”
BackgroundMethodInfluentialStatistical power calculations1
Lenth, R. V. (2007) · Journal of Animal Science · doi:10.2527/jas.2006-449 · Cited by 165 · cited 1×
“It should also be noted that the use of power analysis generally should be limited to planning studies and should not be used for analyzing or interpreting results (Hoenig & Heisey, 2001; Lenth, 2007).”
MethodThe case against retrospective statistical power analyses with an introduction to power analysis
Nakagawa, S., & Foster, T. M. (2004) · acta ethologica · doi:10.1007/s10211-004-0095-z · Cited by 159 · cited 2×
“While power analyses are also a useful tool to illustrate these relationships, they mainly serve the purpose of determining and justifying design parameters (i.e. sample size or the number of items/stimuli) (Nakagawa & Foster, 2004).”
MethodUnderstanding Mixed-Effects Models Through Data Simulation
DeBruine, L. M., & Barr, D. J. (2021) · Advances in Methods and Practices in Psychological Science · doi:10.1177/2515245920965119 · Cited by 148 · cited 2×
“Additionally, more extensive resources for data simulation in mixed models can be found in DeBruine and Barr (2021).”
BackgroundType I and Type II Error Under Random‐Effects Misspecification in Generalized Linear Mixed Models
Litière, S., Alonso, A., & Molenberghs, G. (2007) · Biometrics · doi:10.1111/j.1541-0420.2007.00782.x · Cited by 126 · cited 1×
“A final note on exploring parameters is that while we cover the option of changing the beta coefficients in a model, this method can also be used to simulate the type I error rate by setting all effect sizes to zero (Litière, Alonso, & Molenberghs, 2007).”
MethodEye movements guided by morphological structure: Evidence from the Uighur language
Yan, M., Zhou, W., Shu, H., Yusupu, R., Miao, D., Krügel, A., & Kliegl, R. M. (2014) · Cognition · doi:10.1016/j.cognition.2014.03.008 · Cited by 102 · cited 10×
“In line with the results of Yan et al. (2014), we expect the FLP to increase (i.”
BackgroundMethodResultInfluentialKain, M. P., Bolker, B. M., & McCoy, M. W. (2015) · PeerJ · doi:10.7717/peerj.1226 · Cited by 71
Power equivalence in structural equation modelling
von Oertzen, T. (2010) · British Journal of Mathematical and Statistical Psychology · doi:10.1348/000711009x441021 · Cited by 58 · cited 3×
“…the experimental design could therefore be motivated by reducing the overall cost or duration of the prospective study as well as ensuring that the study duration is manageable for a single participant (Kain, Bolker, & McCoy, 2015; von Oertzen, 2010) — all while ensuring sufficient over-all power.”
BackgroundPower Analysis in Two-Level Unbalanced Designs
Konstantopoulos, S. (2010) · The Journal of Experimental Education · doi:10.1080/00220970903292876 · Cited by 43 · cited 1×
“7b, suggesting that power can be lower for designs with unbalanced groups (Brysbaert, 2019; Konstantopoulos & Taylor, 2020).”
BackgroundDejanDraschkow/mixedpower: The Force Awakens
Kumle, L., Võ, M. L.-H., & Draschkow, D. (2018) · Zenodo (CERN European Organization for Nuclear Research) · doi:10.5281/zenodo.1341047 · Cited by 36
Self-citationvon Oertzen, T., & Brandmaier, A. M. (2013) · Psychology and Aging · doi:10.1037/a0031844 · Cited by 32
Power Analysis by Simulation using R and simglmPreprint
LeBeau, B. C. (2019) · doi:10.17077/f7kk-6w7f · Cited by 9 · cited 4×
“simglm (LeBeau, 2019), pamm (Martin, 2012), powerlmm (Magnusson, 2018), sim.”
MethodInfluentialBecoming Familiar with Multilevel Modeling
Goldstein, H. (2007) · Significance · doi:10.1111/j.1740-9713.2007.00249.x · Cited by 9 · cited 2×
“There are plenty of excellent 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 & Stevens…”
BackgroundKumle, L., Võ, M. L. ‐., & Draschkow, D. (2020) · Journal of Vision · doi:10.1167/jov.20.11.696 · Cited by 2
Self-citationpamm: Power Analysis for Random Effects in Mixed Models
Martin, J. G. A. (2009) · doi:10.32614/cran.package.pamm · Cited by 2
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.