Description Usage Arguments Value Examples
View source: R/prevalence_functions.R
Estimates apparent prevalence and confidence limits for given sample size and result, assuming representative sampling
1  | 
x | 
 number of positives in sample  | 
n | 
 sample size, note: either x or n can be a vector, but at least one must be scalar  | 
type | 
 method for estimating CI, one of c("normal", "exact", "wilson", "jeffreys", "agresti-coull", "all"), default = "wilson"  | 
conf | 
 level of confidence required, default = 0.95 (scalar)  | 
either 1) if type = "all", a list with 5 elements, each element a matrix with 6 columns, x, n, proportion, lower confidence limit, upper confidence limit, confidence level and CI method; or 2) a matrix of results for the chosen method
1 2 3 4 5 6 7  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.