Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

approxAUC

Approximate AUC


Description

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.

Usage

approxAUC(y, yhat, n = 1000)

Arguments

y

the actual class labels [0-1]

yhat

the predicted probabilities

n

number of samples to draw

Author(s)

erik, Neal Fultz

References

Examples

g <- glm(y~x,data=data.frame(x=1:10,y=1:10))
classMethods(g)

stackoverflow

Stack Overflow's Greatest Hits

v0.7.0
CC BY-SA 4.0
Authors
Neal Fultz <nfultz@gmail.com> and the StackOverflow.com community
Initial release
2020-01-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.