# NOT RUN {
# Find the number of clusters per condition needed for a trial with alpha = 0.05,
# power = 0.80, nsubjects = 100, d = 0.50 units, ICC = 0.05, rho_c = 0.50, rho_s = 0.70,
# and vart = 1 unit.
cpa.did.normal(nsubjects = 100 , d = 0.5, ICC = 0.05, rho_c = 0.50, rho_s = 0.70, vart = 1)
#
# The result, nclusters = 4.683358, suggests 5 clusters per condition should be used.
# }
Run the code above in your browser using DataLab