Re: [R] ROC Curve: negative AUC

2012-11-23 Thread brunosm
Thanks,

Do you know how to correct it?

Cheers,

Bruno



--
View this message in context: 
http://r.789695.n4.nabble.com/ROC-Curve-negative-AUC-tp4650469p4650530.html
Sent from the R help mailing list archive at Nabble.com.

__
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.


Re: [R] ROC Curve: negative AUC

2012-11-22 Thread Thomas Lumley
On Fri, Nov 23, 2012 at 7:58 AM, brunosm  wrote:

> Hi all,
>
> does anyone know why the area under the curve (AUC) is negative?
>
> I'm using ROC function with a logistic regression, package Epi.
>
> First time it happens...
>
>
Have you looked at the ROC curve?

That should tell you whether there's some strange non-convexity going on or
whether the variable is just being put into the calculations backwards.

   -thomas


-- 
Thomas Lumley
Professor of Biostatistics
University of Auckland

[[alternative HTML version deleted]]

__
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.


Re: [R] ROC Curve: negative AUC

2012-11-22 Thread Wensui Liu
wrong direction for ranking

On Thu, Nov 22, 2012 at 1:58 PM, brunosm  wrote:

> the area under the curve (AUC) is negative?
>
> I'm using ROC function with a logistic regression, package Epi.
>
> First time it happens...
>
> Thanks a lot!
>
> Bruno
>



-- 
==
WenSui Liu
Credit Risk Manager, 53 Bancorp
wensui@53.com
513-295-4370
==

[[alternative HTML version deleted]]

__
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.


[R] ROC Curve: negative AUC

2012-11-22 Thread brunosm
Hi all,

does anyone know why the area under the curve (AUC) is negative?

I'm using ROC function with a logistic regression, package Epi.

First time it happens...

Thanks a lot!

Bruno



--
View this message in context: 
http://r.789695.n4.nabble.com/ROC-Curve-negative-AUC-tp4650469.html
Sent from the R help mailing list archive at Nabble.com.

__
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.