power.oneway | R Documentation |
Compute power of one-way ANOVA; Uses classical power formula for ANOVA; Assumes equal variance and sample size
power.oneway(n, alpha, theta, k = 2)
n |
per-group sample size (scalar) |
alpha |
p-value threshold (scalar) |
theta |
sum of ((group mean - overall mean)/stdev)^2 across all groups for each hypothesis test(vector) |
k |
the number of groups to be compared, default k=2 |
For many applications, the null effect is zero for the parameter theta described above
Vector of power estimates for test of equal means
theta=rep(c(2,0),c(100,900));
res = power.oneway(n = 50, alpha = 0.05, theta = theta, k = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.