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