Dear R-helpers: I want to calculate area under a Receiver Operator Characteristic curve. Where can I find related functions? Thank you in advance Xiao
Xiao, The Mayo Clinic website has an archive of functions written in S to plot ROC and calculate the AUC for those plots. The functions are self-extracting, and easily imported into R. http://www.mayo.edu/hsr/Sfunc.html Cheers, Joe Nocera -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of XIAO LIU Sent: March 11, 2004 2:16 PM To: r-help at stat.math.ethz.ch Subject: [R] Receiver Operator Characteristic curve Dear R-helpers: I want to calculate area under a Receiver Operator Characteristic curve. Where can I find related functions? Thank you in advance Xiao ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Look over here: http://www.bioconductor.org/faq.html#Bioconductor%20Packages XIAO LIU <xiaoliu at jhmi.edu> Sent by: r-help-bounces at stat.math.ethz.ch 03/11/2004 01:16 PM To: r-help at stat.math.ethz.ch cc: Subject: [R] Receiver Operator Characteristic curve Dear R-helpers: I want to calculate area under a Receiver Operator Characteristic curve. Where can I find related functions? Thank you in advance Xiao ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
well one stop is at www.bioconductor.org/repository/release1.3/package/html/index.html where you will find an ROC package On Thu, Mar 11, 2004 at 01:16:15PM -0500, XIAO LIU wrote:> Dear R-helpers: > > I want to calculate area under a Receiver Operator Characteristic curve. Where can I find related functions? > > Thank you in advance > > Xiao > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html-- +---------------------------------------------------------------------------+ | Robert Gentleman phone : (617) 632-5250 | | Associate Professor fax: (617) 632-2444 | | Department of Biostatistics office: M1B20 | | Harvard School of Public Health email: rgentlem at jimmy.harvard.edu | +---------------------------------------------------------------------------+
On Thu, 11 Mar 2004 13:16:15 -0500 XIAO LIU <xiaoliu at jhmi.edu> wrote:> Dear R-helpers: > > I want to calculate area under a Receiver Operator Characteristic curve. > Where can I find related functions? > > Thank you in advance > > Xiao >install.packages('Hmisc') library(Hmisc) w <- somers2(predicted probability, 0/1 diagnosis) Convert Somers' Dxy rank correlation to ROC area (C) using Dxy=2*(C-.5). To get standard error of Dxy (and hence C) type ?rcorr.cens (another Hmisc function). This is the nonparametric Wilcoxon-Mann-Whitney approach. --- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
On Thu, Mar 11, 2004 at 01:16:15PM -0500, XIAO LIU wrote:> Dear R-helpers: > > I want to calculate area under a Receiver Operator Characteristic curve. Where can I find related functions?There is an ROC package within the Bioconductor Project that works with R. I use it, too.> > Thank you in advance > > Xiao > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html-- Frank G. Zoellner AG Angewandte Informatik Technische Fakult"at Universit"at Bielefeld phone: +49(0)521-106-2951 fax: +49(0)521-106-2992 email: fzoellne at techfak.uni-bielefeld.de