English

Simulating the Power of Statistical Tests: A Collection of R Examples

Applications 2026-02-16 v3

Abstract

This paper illustrates how to calculate the power of a statistical test by computer simulation. It provides R code for power simulations of several classical inference procedures including one- and two-sample t tests, chi-squared tests, regression, and analysis of variance.

Keywords

Cite

@article{arxiv.2110.09836,
  title  = {Simulating the Power of Statistical Tests: A Collection of R Examples},
  author = {Florian Wickelmaier},
  journal= {arXiv preprint arXiv:2110.09836},
  year   = {2026}
}

Comments

24 pages, 1 figure, PDFLaTeX; new paragraph on power curves, changed 2x2 repeated measures ANOVA example to 2x3, updated references