Calculate AUC from sensitivity and specificity
Source:R/basic_metrics.R
, R/diagnostic_metrics.R
calculate_auc.Rd
Uses the formula shown in the package documentation example:
0.5 * (sens * (1 - spec)) + 0.5 * (1 * (1 - (1 - spec))) + 0.5 * ((1 - sens) * spec)
.