auc: Area Under ROC Curve From Sensitivities And Specificities.

View source: R/auc.R

aucR Documentation

Area Under ROC Curve From Sensitivities And Specificities.

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 specificities

Details

This function computes the area under ROC curve using the trapezoidal rule from two vectors of sensitivities and specificities. The value of the area is directly returned.

Author(s)

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

Examples

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

RISCA documentation built on June 22, 2024, 12:22 p.m.

Related to auc in RISCA...