trapezint {ROC}R Documentation

trapezoidal rule for AUC

Description

trapezoidal rule for AUC

Usage

trapezint(x, y, a, b)

Arguments

x

x - abscissae

y

y - ordinates

a

a - lower limit of integration

b

b - upper limit of integration

Details

uses approx

Value

estimated AUC

Examples

x <- sort(runif(30))
y <- sin(x)
print(trapezint(x,y,0,1))

[Package ROC version 1.56.0 Index]