View source: R/01-sample_size.R
get_n_clusters | R Documentation |
Calculate number of clusters to sample to reach target sample size
get_n_clusters(n, n_cluster, u5, p)
n |
Target sample size of cases for the coverage survey. |
n_cluster |
Average cluster population for all ages in the specified survey area. |
u5 |
Proportion (value from 0 to 1) of population that are aged 6-59 months. |
p |
Prevalence (value from 0 to 1) of condition that is to be assessed. |
A numeric value of the estimated number of clusters to sample to reach target sample size.
## Calculate number of villages to sample given an average village population
## of 600 persons of all ages with an under-5 population of 17% and a
## prevalence of SAM of 2% if the target sample size is 40
get_n_clusters(n = 40, n_cluster = 600, u5 = 0.17, p = 0.02)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.