Psychological Methods, Evaluation and Statistics, Department of Psychology, University of Zurich, Binzmuehlestrasse 14, Box 27, 8050, Zurich, Switzerland.
Behav Res Methods. 2024 Aug;56(5):5246-5263. doi: 10.3758/s13428-023-02269-0. Epub 2023 Nov 29.
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.
在设计实证研究时,一个常见的挑战是确定适当的样本量。当使用更复杂的模型时,只能使用蒙特卡罗模拟来估计功效。在本教程中,我们将介绍 R 包 mlpwr,以基于代理模型执行基于模拟的功效分析。代理模型是一种强大的工具,可以指导寻找研究设计参数,这些参数暗示了所需的功效或满足成本阈值(例如,以货币成本为单位)。当有多个设计参数时,mlpwr 可用于搜索最佳分配,例如在平衡参与者数量和多层次建模中的组数量时。同时,该方法可以考虑每个设计参数的成本,并旨在找到具有成本效益的设计。我们介绍了该软件包的基本功能,该功能可应用于广泛的统计模型和研究设计。此外,我们还提供了两个基于实证研究的示例,一个用于使用项目反应理论模型进行样本量规划,另一个用于使用多层次建模为研究分配参与者数量和国家数量。