Re: [R] How to calculate the area under the curve

2009-10-22 Thread Frank E Harrell Jr
ne Johns Hopkins University Ph. (410) 502-2619 email: rvarad...@jhmi.edu - Original Message - From: "olivier.abz" <0509...@rgu.ac.uk> Date: Thursday, October 22, 2009 10:24 am Subject: [R] How to calculate the area under the curve To: r-help@r-project.org Hi all, I w

Re: [R] How to calculate the area under the curve

2009-10-22 Thread Tom Fletcher
Subject: [R] How to calculate the area under the curve Hi all, I would like to calculate the area under the ROC curve for my predictive model. I have managed to plot points giving me the ROC curve. However, I do not know how to get the value of the area under. Does anybody know of a function that

Re: [R] How to calculate the area under the curve

2009-10-22 Thread Ravi Varadhan
__ Ravi Varadhan, Ph.D. Assistant Professor, Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University Ph. (410) 502-2619 email: rvarad...@jhmi.edu - Original Message - From: "olivier.abz" <0509...@rgu.ac.uk> Da

Re: [R] How to calculate the area under the curve

2009-10-22 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of olivier.abz > Sent: Thursday, October 22, 2009 7:23 AM > To: r-help@r-project.org > Subject: [R] How to calculate the area under the curve > > > Hi

Re: [R] How to calculate the area under the curve

2009-10-22 Thread Sebastien Bihorel
Well, you can use the trapezoidal rule to numerically calculate any area under the curve. I don't know if a specific exists but you could create one. The principle is basically to compute the area between two successive points of your profile with: AREA=0.5*(Response1 + Response2)/(Time2-Time1)

Re: [R] How to calculate the area under the curve

2009-10-22 Thread Frank E Harrell Jr
olivier.abz wrote: Hi all, I would like to calculate the area under the ROC curve for my predictive model. I have managed to plot points giving me the ROC curve. However, I do not know how to get the value of the area under. Does anybody know of a function that would give the result I want usi

[R] How to calculate the area under the curve

2009-10-22 Thread olivier.abz
Hi all, I would like to calculate the area under the ROC curve for my predictive model. I have managed to plot points giving me the ROC curve. However, I do not know how to get the value of the area under. Does anybody know of a function that would give the result I want using an array of speci