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 [[alternative HTML version deleted]]
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! > > > > YuleiROC 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
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