calc_mROC_stats | R Documentation |
Calculates the absolute surface between the empirical and expected ROCs
calc_mROC_stats(y, p, ordered = FALSE, fast = TRUE)
y |
y vector of binary responses |
p |
p vector of predicted probabilities (same length as y) |
ordered |
defaults to false |
fast |
defaults to true |
Returns a list with the A (mean calibration statistic) and B (mROC/ROC equality statistic) as well as the direction of poential miscalibration (sign of the difference between the ctual and predicted mean risk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.