rocAUC: Calculation of Area Under the Curve (AUC) for an ROC plot

View source: R/rocAUC.R

rocAUCR Documentation

Calculation of Area Under the Curve (AUC) for an ROC plot

Description

This function calculates the AUC by summing the tri- and rectangles, which can be made of the ROC points. If missing, the y-intercept is added by linear interpolation. The last point, where both rates reach 1, is also added.

Usage

rocAUC(falseAlarm, hit)

Arguments

falseAlarm

A vector containing the false alarm rate.

hit

A vector containing the hit rate.

Value

The function returns the estimation of AUC.

Author(s)

Joern Alexander Quent, alexander.quent@rub.de


JAQuent/memoryROC documentation built on June 9, 2025, 1:43 a.m.