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.
翻译:本文件说明了如何通过计算机模拟计算统计测试的功率。它为若干典型推论程序的电源模拟提供了R码,包括一、二类推论、一、二类推论、二类推论、弧度测试、回归分析以及差异分析。