CoChat

Estimating power in (generalized) linear mixed models: An open introduction and tutorial in R

Open access
Kumle, Levi, Võ, Melissa L.-H., Draschkow, Dejan · 2021 · Behavior Research Methods

Published 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.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.3758/s13428-021-01546-0

Cites

43 of 43 references verified0 citation errors · 0 not checkable

Statistics

Figures

Fig. 1 Basic principle behind a simulation-based approach to power analysis
Fig. 1 Basic principle behind a simulation-based approach to power analysisCC BY · PubMed Central
Fig. 2 Data from Yan et al. (2014) including subject and sentence identifier (random factors) as well as the dependent variable “flp” (first landing position of saccades) and the predictors word length and complexity
Fig. 2 Data from Yan et al. (2014) including subject and sentence identifier (random factors) as well as the dependent variable “flp” (first landing position of saccades) and the predictors word length and complexityCC BY · PubMed Central
Fig. 3 Results for power simulations in Scenario 1 using the mixedpower() function including power (y-axis) for the effect of word length (left panel), complexity (middle panel), and their interaction (right panel) as a function of the number of participants (x-axis). For each effect, data-based simulations (gray) as well as SESOI simulations (orange) are included
Fig. 3 Results for power simulations in Scenario 1 using the mixedpower() function including power (y-axis) for the effect of word length (left panel), complexity (middle panel), and their interaction (right panel) as a function of the number of participants (x-axis). For each effect, data-based simulations (gray) as well as SESOI simulations (orange) are includedCC BY · PubMed Central
Fig. 4 Left panel: Power for 48 participants for varying number of sentences (x-axis) including a data-based (gray) and SESOI (orange) simulation. Central panel: Data-based power for different sample sizes of participants (30, 48, 60) and varying numbers of sentences for the effect of complexity. Right panel: Data-based power for the interaction between complexity and word length
Fig. 4 Left panel: Power for 48 participants for varying number of sentences (x-axis) including a data-based (gray) and SESOI (orange) simulation. Central panel: Data-based power for different sample sizes of participants (30, 48, 60) and varying numbers of sentences for the effect of complexity. Right panel: Data-based power for the interaction between complexity and word lengthCC BY · PubMed Central
Fig. 5 Artificial data frame created in Scenario 3, including all relevant predictors and covariates
Fig. 5 Artificial data frame created in Scenario 3, including all relevant predictors and covariatesCC BY · PubMed Central
Fig. 6 Power for the effects of Native Language, Frequency, and their interaction simulated with mixedpower
Fig. 6 Power for the effects of Native Language, Frequency, and their interaction simulated with mixedpowerCC BY · PubMed Central
Fig. 7 Power (y-axis) for all effects included in the artificial model for different assumptions made in the generation of the artificial data. a Power for different standard deviations in the distribution underlying the frequency ratings for the fixed effect “Frequency”. b Power for different ratios of English to non-English subjects (i.e. balance in variable native language)
Fig. 7 Power (y-axis) for all effects included in the artificial model for different assumptions made in the generation of the artificial data. a Power for different standard deviations in the distribution underlying the frequency ratings for the fixed effect “Frequency”. b Power for different ratios of English to non-English subjects (i.e. balance in variable native language)CC BY · PubMed Central
Fig. 8 Variance (left) and mean runtime (right) for single power estimates and a different amount of underlying single repetitions/simulations. Here, power was estimated for the effect of complexity, for 48 subjects in the Yan et al. (2014) data set using mixedpower. Exact runtimes can vary extensively between different designs
Fig. 8 Variance (left) and mean runtime (right) for single power estimates and a different amount of underlying single repetitions/simulations. Here, power was estimated for the effect of complexity, for 48 subjects in the Yan et al. (2014) data set using mixedpower. Exact runtimes can vary extensively between different designsCC BY · PubMed Central

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.

A few free checks a day · papers already verified open instantly · results are public

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?

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

Research works printed but not linked: 1

  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

See all 634

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
OpenAlex
W3159289228
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
Licence
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.