## EXAMPLE 1:
## A survey to estimate the average number of residents over 75 years of
## age that require the services of a nurse in a given retirement village is
## to be carried out using a one-stage cluster sampling strategy.
## There are five housing complexes in the village with 25 residents in each.
## We expect that there might be an average of 34 residents meeting this
## criteria (SD 5.5). We would like the estimated sample size to provide us
## with an estimate that is within 10% of the true value. Previous studies
## report an intracluster correlation for the number of residents requiring the
## services of a nurse in this retirement village housing complexes to
## be 0.10. How many housing complexes (clusters) should be sampled?
epi.ssclus1estc(N.psu = NA, b = 25, xbar = 34, xsigma = 5.5,
epsilon = 0.10, error = "relative", rho = 0.10, nfractional = FALSE,
conf.level = 0.95)
## A total of 2 housing complexes need to be sampled to meet the specifications
## of this study.
Run the code above in your browser using DataLab