confidence | R Documentation |
Calculate a confidence interval for a proportion, such as PPA or NPA. Uses
the recommended method as described in Altman chapter 6 (loc 1179 in the
Kindle edition) and in CLSI EP12-A2 (2008). Note that the CLSI method may
round the z-score for a 95% CI to 1.96, leading to slight differences in
computed values. Here, the z-score is calculated using the
stats::qnorm()
function.
confidence(true_calls, false_calls, interval = 0.95)
true_calls |
The number of correct calls (true positives or true negatives). |
false_calls |
The number of incorrect calls (false positives or false negatives). |
interval |
The confidence interval to calculate. Defaults to
|
Also known as "Wilson's method".
A list including a lower_bound
and an upper_bound
.
confidence(100, 0, 0.95)
confidence(100, 0)
confidence(100, 0, 0.99)
confidence(99, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.