auc | R Documentation |
A simple algorithm for calculating AUC.
auc(obs, fit, plot = FALSE)
obs |
Dichotomous |
fit |
Fitted probabilities from some model. |
plot |
Logical, indicating whether or not ROC curve plot should be created. |
Ken Aho
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.