Learn R Programming

ROCt (version 0.9.5)

AUC:

Description

This function computes the area under ROC curve by using the trapezoidal rule.

Usage

AUC(sens, spec)

Arguments

sens
A numeric vector with the sensitivities
spec
A numeric vector with the sensitivities

Details

This function computes the area under ROC curve using the trapezoidal rule. The value of the area is directly returned.

Examples

Run this code

se.temp <- c(0, 0.5, 0.5, 1)
sp.temp <- c(1, 0.5, 0.5, 0)
AUC(se.temp, sp.temp)

Run the code above in your browser using DataLab