calculate_phi function

calculate phi

calculate phi

calculates phi out of specificity and sensitivity depending on the ratio

calculate_phi(spec, sens, ratio = 1)

Arguments

  • spec: is the specificity, the true negative rate
  • sens: is the sensitivity, the true positive rate
  • ratio: is the ratio of positive and negative of the data. The default is 1

Returns

phi

Examples

calculate_phi(1,0) calculate_phi(0.5,0.3)

Author(s)

rothe

  • Maintainer: Ursula Neumann
  • License: GPL (>= 2)
  • Last published: 2018-05-08

Useful links