Description Usage Arguments Value Examples
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
1 | auc_roc(predictions, outcomes)
|
predictions |
list of numerics, predicted values |
outcomes |
list of numerics, actual values/outcomes |
numeric, returns AUC ROC value
1 2 | auc_roc(predictions = FakePredictionResults$est.risk.score,
outcomes = FakePredictionResults$true.risk.bin)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.