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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to