trapezint {ROC} | R Documentation |
trapezoidal rule for AUC
trapezint(x, y, a, b)
x |
x - abscissae |
y |
y - ordinates |
a |
a - lower limit of integration |
b |
b - upper limit of integration |
uses approx
estimated AUC
x <- sort(runif(30)) y <- sin(x) print(trapezint(x,y,0,1))