auc {AUC} | R Documentation |
Compute the area under the curve of a given performance measure.
Description
This function computes the area under the sensitivity curve (AUSEC), the area under the specificity curve (AUSPC), the area under the accuracy curve (AUACC), or the area under the receiver operating characteristic curve (AUROC).
Usage
auc(x, min = 0, max = 1)
Arguments
x |
an object produced by one of the functions |
min |
a numeric value between 0 and 1, denoting the cutoff that defines the start of the area under the curve |
max |
a numeric value between 0 and 1, denoting the cutoff that defines the end of the area under the curve |
Value
A numeric value between zero and one denoting the area under the curve
Author(s)
Authors: Michel Ballings and Dirk Van den Poel, Maintainer: Michel.Ballings@UGent.be
References
Ballings, M., Van den Poel, D., Threshold Independent Performance Measures for Probabilistic Classifcation Algorithms, Forthcoming.
See Also
sensitivity
, specificity
, accuracy
, roc
, auc
, plot
Examples
data(churn)
auc(sensitivity(churn$predictions,churn$labels))
auc(specificity(churn$predictions,churn$labels))
auc(accuracy(churn$predictions,churn$labels))
auc(roc(churn$predictions,churn$labels))