Sample Size Calculator for Mean
Calculate the required sample size with MY ant Sample Size Calculator
Mean: >2 Independent Samples
Sample Size for Balanced Group ANOVA design using R
X is the values of group means. Modify the values of x and sd accordingly. Paste and run in code snippet below.
x <- c(10,11,12,13)
sd <- 10
power <- 0.8
sig.level <- 0.05
sd.p <- function(x){sd(x)*sqrt((length(x)-1)/length(x))}
f <- sd.p(x)/sd
library(pwr)
pwr.anova.test(f=f,k=length(x),power=power,sig.level=sig.level)
