Power Analysis with Superpower
This book is still being developed. If you have any comments to improve this book, let us know.
The goal of
Superpower is to easily simulate factorial designs and empirically calculate power using a simulation approach.
The R package is intended to be utilized for prospective (a priori) power analysis. Calculating post hoc power is not a useful thing to do for single studies.
This package, and book, expect readers to have some familiarity with R (2020). However, we have created two Shiny apps (for the
ANOVA_exact functions respectively) to help use
Superpower if you are not familiar with R. Reading through the examples in this book, and reproducing them in the Shiny apps, is probably the easiest way to get started with power analyses in Superpower.
In this book we will display a variety of ways the
Superpower package can be used for power analysis and sample size planning for factorial experimental designs. We also included various examples of the performance of
Superpower against other R packages (e.g.,
pwr2ppl by Aberson (2019) and
pwr by Champely (2018)) and statistical programs (such as G*Power Faul et al. (2007), MOREpower Campbell and Thompson (2012), and SAS’s
PROC GLMPOWER (2015)). All uses of the
ANOVA_power function have been run with 10000 iterations (
nsims = 10000). If you have any issues using
Superpower or want to expand its capabilities please raise the issue on our GitHub repository.
Daniël Lakens https://orcid.org/0000-0002-0247-239X.
Aaron R. Caldwell https://orcid.org/0000-0002-4541-6283.
Chelsea M. Parlett-Pelleriti https://cmparlettpelleriti.github.io/
This work was funded by VIDI Grant 452-17-013 from the Netherlands Organisation for Scientific Research.
Aberson, Chris. 2019. Pwr2ppl: Power Analyses for Common Designs (Power to the People). https://CRAN.R-project.org/package=pwr2ppl.
Campbell, Jamie, and Valerie A. Thompson. 2012. “MorePower 6.0 for Anova with Relational Confidence Intervals and Bayesian Analysis.” Behavior Research Methods 44: 1255–65. https://doi.org/10.3758/s13428-012-0186-0.
Champely, Stephane. 2018. Pwr: Basic Functions for Power Analysis. https://CRAN.R-project.org/package=pwr.
Faul, Franz, Edgar Erdfelder, Albert-Georg Lang, and Axel Buchner. 2007. “G*Power 3: A Flexible Statistical Power Analysis Program for the Social, Behavioral, and Biomedical Sciences.” Behavior Research Methods 39 (2): 175–91. http://www.psychologie.hhu.de/arbeitsgruppen/allgemeine-psychologie-und-arbeitspsychologie/gpower.html.
R Core Team. 2020. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/.
SAS. 2015. “The Glmpower Procedure.” In SAS/Stat 14.1 User’s Guide, 3738–98. Cary, NC: SAS Institute Inc. http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_glmpower_toc.htm.