View source: R/estimate_min_specificity.r
estimate_min_specificity | R Documentation |
Produces an estimate of minimum specificty under the assumption that of the tests identified only negatives as positives
estimate_min_specificity( positive, total, cutoff = 0.95, samples = 1000, min_specificity = 0.997, max_specificity = 1, prevalence = 0 )
positive |
vector of numbers; the number of positive tests in each sample |
total |
vector of numbres; the total number of tests (positive and negative) in each sample |
cutoff |
the cutoff for the estimate, i.e. the confidence level desired |
samples |
number of values of specificity to sample |
min_specificity |
minimum specificity to test |
max_specificity |
maximum specificity to test |
prevalence |
background prevalence; if >0 then it is assumed that sensitivity is 0, i.e. all positives are still false positives and some of the negatives are false negatives |
estimate of the lower bound of specificity at the desired confidence level
Sebastian Funk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.