calc_auc | R Documentation |
Computation of the area under the curve (AUC), by linear interpolation.
calc_auc(x, y, limits = NULL)
x |
A numeric vector |
y |
A numeric vector |
limits |
A numeric vector of length 2 (default = range of 'x') |
A numeric single value with the computed AUC.
x <- seq(-3,3,l = 100)
y <- dnorm(x)
plot(x,y)
calc_auc(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.