[R] calculate AUC and plot ROC in R
Frank E Harrell Jr
f.harrell at vanderbilt.edu
Thu Mar 6 18:58:32 CET 2008
He, Yulei wrote:
> Hi, there:
>
>
>
> Could someone tell me a simple function of plot ROC curve and calculate
> AUC in R? My setting is very simple, a column of the true binary
> response and another column of predicted probabilities.
>
>
>
> Thanks!
>
>
>
> Yulei
ROC area is easy. See these functions in the Hmisc package: somers2,
rcorr.cens. What action will you take upon seeing the whole ROC curve?
Frank
--
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
More information about the R-help
mailing list