powered by
Compute sensitivity, specificity, positive likelihood ratio, negative likelihood ratio for a single 2x2 table
confusionStatistics(truePos, totalDzPos, trueNeg, totalDzNeg)
The number of true positive tests.
The total number of positives ("sick") in the population.
The number of true negatives in the population.
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.
# NOT RUN { confusionStatistics( 25, 50, 45, 75 ) # }
Run the code above in your browser using DataLab