Description Usage Arguments Value Examples
View source: R/freedom_functions_1.R
Calculates sample size for demonstrating freedom or detecting disease using the appropriate method, depending on whether or not N provided (hypergeometric if N provided, binomial otherwise), assuming imperfect test sensitivity, perfect test specificity and representative sampling
1 |
N |
population size, default = NA (unknown) (scalar or vector of same length as sep) |
sep |
desired population sensitivity (scalar or vector) |
pstar |
specified design prevalence as proportion or integer (scalar or vector of same length as sep) |
se |
unit sensitivity (scalar or vector of same length as sep) |
vector of sample sizes, NA if N is specified and n>N
1 2 3 4 5 |
[1] 299
[1] 226
[1] 95 226 259 291 296 300 299
[1] 451 376 322 282 251 228 226
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.