## EXAMPLE 1 (from Bennett et al. 1991 p 102):
## We intend to conduct a cross-sectional study to determine the prevalence
## of disease X in a given country. The expected prevalence of disease is
## thought to be around 20%. Previous studies report an intracluster
## correlation coefficient for this disease to be 0.02. Suppose that we want
## to be 95% certain that our estimate of the prevalence of disease is
## within 5% of the true population value and that we intend to sample 20
## individuals per cluster. How many clusters should be sampled to meet
## the requirements of the study?
epi.ssclus2estb(N.psu = NA, b = 20, Py = 0.20, epsilon = 0.05,
error = "absolute", rho = 0.02, nfractional = FALSE, conf.level = 0.95)
## A total of 17 clusters need to be sampled to meet the specifications
## of this study. epi.ssclus2estb returns a warning message that the number of
## clusters is less than 25.
Run the code above in your browser using DataLab