Learn R Programming

statpsych (version 2.0.0)

size.test.icc: Sample size to test an intraclass correlation

Description

Computes the sample size required to test an intraclass correlation (icc) with desired power in a one-way random effects ANOVA model.

Usage

size.test.icc(alpha, pow, icc, r, h)

Value

Returns the required sample size

Arguments

alpha

alpha level for hypothesis test

pow

desired power

icc

icc planning value

r

number of measurements (items, raters, forms)

h

null hypothesis value of icc

References

Donner1987statpsych

Examples

Run this code
size.test.icc(.05, .90, .65, 4, .50)

# Should return:
# Sample size
#         104
 

Run the code above in your browser using DataLab