Function modified from glmnet package (modified to ensure deterministic results). Calculates weighted AUC, i.e. the area under the receiver operating curve. The larger, the better.
Usage
AUC(actual, predicted, w = NULL, ...)
Value
A numeric vector of length one.
Arguments
actual
Observed values (0 or 1).
predicted
Predicted values of any value (not necessarly between 0 and 1).
w
Optional case weights.
...
Further arguments passed by other methods.
Details
The unweighted version can be different from the weighted one with unit weights due to ties in predicted.