evaluate_discrimination function

evaluate_discrimination

evaluate_discrimination

computes various discrimination error values, namely: sensitivity, specificity, accuracy, positive predictive value (ppv), negative predictive value (npv) and AUC

evaluate_discrimination(actual, predicted, cutoff = NULL)

Arguments

  • actual: vector of observed class labels (0/1)
  • predicted: vector of uncalibrated predictions
  • cutoff: cut-off to be used for the computation of npv, ppv, sensitivity and specificity, Default: value that maximizes sensitivity and specificity (Youden-Index)

Returns

list object with the following components: - sens: sensitivity

  • spec: specificity

  • acc: accuracy

  • ppv: positive predictive value

  • npv: negative predictive value

  • cutoff: cut-off that was used to compute the error values

  • auc: AUC value

See Also

roc

  • Maintainer: Dominik Heider
  • License: LGPL-3
  • Last published: 2019-08-19

Useful links