Description Usage Arguments Author(s) References Examples
AUC can be computed exactly by sorting the fitted values, which is often computationally slow. Instead, we can approximate the AUC numerically using monte carlo.
1 | approxAUC(y, yhat, n = 1000)
|
y |
the actual class labels [0-1] |
yhat |
the predicted probabilities |
n |
number of samples to draw |
erik, Neal Fultz
http://stackoverflow.com/questions/4903092/calculate-auc-in-r
1 2 | g <- glm(y~x,data=data.frame(x=1:10,y=1:10))
classMethods(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.