Description Usage Arguments Value Examples
View source: R/prevalence_functions.R
Calculates sample size for estimating apparent prevalence (simple proportion)
1 | n.ap(p, precision, conf = 0.95)
|
p |
expected proportion, scalar or vector of values |
precision |
absolute precision, +/- proportion equivalent to half the width of the desired confidence interval, scalar or vector of values, note: at least one of p and precision must be a scalar |
conf |
level of confidence required, default = 0.95 (scalar) |
a vector of sample sizes
1 2 3 4 5 |
[1] 97
[1] 166
[1] 139 246 323 369 385
[1] 6147 1537 246 62
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.