pwranova: An R package for power analysis of flexible ANOVA designs and related tests
DOI:
https://doi.org/10.51094/jxiv.1555Keywords:
power analysis, R package, experimental design, analysis of variance, effect sizeAbstract
Power analysis is a critical step in the design of psychological and behavioral experiments, yet existing tools often lack the flexibility to accommodate complex ANOVA designs. pwranova is an R package that performs power analysis for between-, within-, and mixed-factor ANOVA designs, with full support for main effects, interactions, and planned contrasts (custom contrasts with user-defined weights). The package allows researchers to calculate statistical power, required total sample size, significance level, or minimal detectable effect sizes expressed as partial eta squared or Cohen’s f.
In addition to ANOVA, pwranova provides complementary functions for common related tests, including t-tests (one-sample, paired, and two-sample) and tests of Pearson’s correlation (using either the t-distribution or Fisher's z-transformation approach). This makes the package a convenient toolkit for planning experimental studies in psychology and related fields. This R package is available from the author’s GitHub repository: https://github.com/mutopsy/pwranova/.
Conflicts of Interest Disclosure
The author declares no conflicts of interest.Downloads *Displays the aggregated results up to the previous day.
References
Champely, S. (2020). pwr: Basic functions for power analysis (Version 1.3-0) [R package]. Comprehensive R Archive Network (CRAN). https://CRAN.R-project.org/package=pwr
Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum Associates.
Faul, F., Erdfelder, E., Lang, A.-G., & Buchner, A. (2007). G*Power 3: A flexible statistical power analysis program for the social, behavioral, and biomedical sciences. Behavior Research Methods, 39(2), 175–191. https://doi.org/10.3758/BF03193146
Downloads
Posted
Submitted: 2025-09-28 09:57:09 UTC
Published: 2025-09-30 06:34:44 UTC
License
Copyright (c) 2025
Hiroyuki Muto

This work is licensed under a Creative Commons Attribution 4.0 International License.