
Calculate AUC from ROC Curve
calculate_auroc.RdThis function calculates the Area Under the Receiver Operating Characteristic (ROC) curve. It uses the trapezoidal rule to compute the AUC from the false positive rate (FPR) and sensitivity (true positive rate).