Description Usage Arguments Value Examples
View source: R/prevalence_functions.R
Calculates sample size for estimating true prevalence using normal approximation
1 | n.tp(p, se, sp, precision, conf = 0.95)
|
p |
estimated true prevalence (scalar or vector) |
se |
test sensitivity (scalar or vector) |
sp |
test specificity (scalar or vector) |
precision |
absolute precision, +/- proportion equal to half the width of the desired confidence interval (scalar or vector) |
conf |
desired level of confidence for CI, default = 0.95 (scalar or vector) |
a vector of sample sizes
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.