Re: [R] calculate AUC and plot ROC in R

From: Dieter Menne <>
Date: Thu, 06 Mar 2008 18:03:34 +0000 (UTC)

He, Yulei <he <at>> 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:


I normally use package ROCR.

Dieter mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 06 Mar 2008 - 18:06:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Mar 2008 - 18:30:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive