» Articles » PMID: 38030925

Sample Size Planning for Complex Study Designs: A Tutorial for the Mlpwr Package

Overview
Publisher Springer
Specialty Social Sciences
Date 2023 Nov 29
PMID 38030925
Authors
Affiliations
Soon will be listed here.
Abstract

A common challenge in designing empirical studies is determining an appropriate sample size. When more complex models are used, estimates of power can only be obtained using Monte Carlo simulations. In this tutorial, we introduce the R package mlpwr to perform simulation-based power analysis based on surrogate modeling. Surrogate modeling is a powerful tool in guiding the search for study design parameters that imply a desired power or meet a cost threshold (e.g., in terms of monetary cost). mlpwr can be used to search for the optimal allocation when there are multiple design parameters, e.g., when balancing the number of participants and the number of groups in multilevel modeling. At the same time, the approach can take into account the cost of each design parameter, and aims to find a cost-efficient design. We introduce the basic functionality of the package, which can be applied to a wide range of statistical models and study designs. Additionally, we provide two examples based on empirical studies for illustration: one for sample size planning when using an item response theory model, and one for assigning the number of participants and the number of countries for a study using multilevel modeling.

References
1.
Baker D, Vilidaite G, Lygo F, Smith A, Flack T, Gouws A . Power contours: Optimising sample size and precision in experimental psychology and human neuroscience. Psychol Methods. 2020; 26(3):295-314. PMC: 8329985. DOI: 10.1037/met0000337. View

2.
Bakker M, Veldkamp C, van den Akker O, van Assen M, Crompvoets E, Ong H . Recommendations in pre-registrations and internal review board proposals promote formal power analyses but do not increase sample size. PLoS One. 2020; 15(7):e0236079. PMC: 7394423. DOI: 10.1371/journal.pone.0236079. View

3.
Brysbaert M, Stevens M . Power Analysis and Effect Size in Mixed Effects Models: A Tutorial. J Cogn. 2019; 1(1):9. PMC: 6646942. DOI: 10.5334/joc.10. View

4.
Button K, Ioannidis J, Mokrysz C, Nosek B, Flint J, Robinson E . Power failure: why small sample size undermines the reliability of neuroscience. Nat Rev Neurosci. 2013; 14(5):365-76. DOI: 10.1038/nrn3475. View

5.
Cools W, Van Den Noortgate W, Onghena P . ML-DEs: a program for designing efficient multilevel studies. Behav Res Methods. 2008; 40(1):236-49. DOI: 10.3758/brm.40.1.236. View