Calculates the absolute surface between the empirical and expected ROCs
calc_mROC_stats(y, p, ordered = FALSE, fast = TRUE)
Returns a list with the A (mean calibration statistic) and B (mROC/ROC equality statistic) as well as the direction of potential miscalibration (sign of the difference between the actual and predicted mean risk)
y vector of binary responses
p vector of predicted probabilities (same length as y)
defaults to false
defaults to true