powered by
Computes the sample size required to test an intraclass correlation (icc) with desired power in a one-way random effects ANOVA model.
size.test.icc(alpha, pow, icc, r, h)
Returns the required sample size
alpha level for hypothesis test
desired power
icc planning value
number of measurements (items, raters, forms)
null hypothesis value of icc
Donner1987statpsych
size.test.icc(.05, .90, .65, 4, .50) # Should return: # Sample size # 104
Run the code above in your browser using DataLab