[R] calculate AUC and plot ROC in R

Dieter Menne dieter.menne at menne-biomed.de
Thu Mar 6 19:03:34 CET 2008


He, Yulei <he <at> hcp.med.harvard.edu> writes:

> 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.

There are a few packages with examples around, which you can find from:

<http://search.r-project.org/cgi-bin/namazu.cgi?query=ROC&max=20&result=normal&sort=score&idxname=functions>

I normally use package ROCR.

Dieter



More information about the R-help mailing list