AUC: Area Under ROC Curve From Sensitivities And Specificities.

Description Usage Arguments Details Author(s) Examples

View source: R/prog.R

Description

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

Usage

1
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.

Author(s)

Y. Foucher <Yohann.Foucher@univ-nantes.fr>

Examples

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

ROCt documentation built on May 2, 2019, 3:25 p.m.