Description Usage Arguments Value References Examples
Compute sensitivity, specificity, positive likelihood ratio, negative likelihood ratio for a single 2x2 table
1 | confusionStatistics(truePos, totalDzPos, trueNeg, totalDzNeg)
|
truePos |
The number of true positive tests. |
totalDzPos |
The total number of positives ("sick") in the population. |
trueNeg |
The number of true negatives in the population. |
totalDzNeg |
The total number of negatives ("well") in the population. |
A one-row matrix containing sensitivity, specificity, posLR, negLR results.
Deeks JJ, Altman DG. BMJ. 2004 July 17; 329(7458): 168-169.
1 2 3 4 | ## Not run:
confusionStatistics( 25, 50, 45, 75 )
## End(Not run)
|
sens spec posLR negLR
[1,] 0.5 0.6 1.25 0.8333333
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.