powered by
A simple algorithm for calculating AUC.
auc(obs, fit, plot = FALSE)
Dichotomous 0, 1 outcomes (i.e., response values for binomial GLM).
0, 1
Fitted probabilities from some model.
Logical, indicating whether or not ROC curve plot should be created.
Ken Aho
Agresti, A. (2012) Categorical Data Analysis, 3rd edition. New York. Wiley.
if (FALSE) { obs <-rbinom(30, 1, 0.5) fit <- rbeta(30, 1, 2) auc(obs, fit)}
Run the code above in your browser using DataLab