compute_sample_size {eufmdis.adapt} | R Documentation |
Compute sample size for freedom from disease
Description
Compute sample size for a one stage freedom from disease survey for given Population size, design prevalence and accuracy, assuming a perfect diagnostic test.
Usage
compute_sample_size(N, prev, accuracy)
Arguments
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) |
Details
The function finds the optimal sample size using a bisection method.
Value
Sample size (integer).
Author(s)
Ian Kopacka
[Package eufmdis.adapt version 0.1.0 Index]