View source: R/compute_sample_size.R
compute_sample_size | R Documentation |
Compute sample size for a one stage freedom from disease survey for given Population size, design prevalence and accuracy, assuming a perfect diagnostic test.
compute_sample_size(N, prev, accuracy)
N |
Integer containing the Size of the population |
prev |
Numeric between 0 and 1; design prevalence |
accuracy |
Numeric between 0 and 1; accuracy of the survey (i.e. detection probability) |
The function finds the optimal sample size using a bisection method.
Sample size (integer).
Ian Kopacka
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.