confusionStatistics function

Compute sensitivity, specificity, positive likelihood ratio, negative likelihood ratio for a single 2x2 table

Compute sensitivity, specificity, positive likelihood ratio, negative likelihood ratio for a single 2x2 table

confusionStatistics(truePos, totalDzPos, trueNeg, totalDzNeg)

Arguments

  • 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.

Returns

A one-row matrix containing sensitivity, specificity, posLR, negLR results.

Examples

## Not run: confusionStatistics( 25, 50, 45, 75 ) ## End(Not run)

References

Deeks JJ, Altman DG. BMJ. 2004 July 17; 329(7458): 168-169.

  • Maintainer: Ari B. Friedman
  • License: LGPL-2.1
  • Last published: 2019-02-01

Useful links