auc_roc: Calculates area under the curve (AUC) for the...

Description Usage Arguments Value Examples

Description

Calculates area under the curve (AUC) for the receiver-operator cureve (ROC) for continious predictions, and actual predictions KP: The summary above and below don't match. This function takes the predictions of a model, (can be either binary 0 or 1, or continous numeric [0,1]) and calculates the ROC curve, and then computes the AUC given the predicted values and actual values

Usage

1
auc_roc(predictions, outcomes)

Arguments

predictions

list of numerics, predicted values

outcomes

list of numerics, actual values/outcomes

Value

numeric, returns AUC ROC value

Examples

1
2
auc_roc(predictions = FakePredictionResults$est.risk.score,
outcomes = FakePredictionResults$true.risk.bin)

ksboxer/CDIPATools documentation built on June 5, 2019, 8:29 a.m.