Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SV: st: ROC-curves

From   Ragnhild Bergene Skråstad <>
To   "" <>
Subject   SV: st: ROC-curves
Date   Thu, 17 Oct 2013 17:00:41 +0000

thank you so much for you help!
best regards 
Ragnhild BS
Fra: [] p&#229; vegne av Marta Garcia-Granero []
Sendt: 15. oktober 2013 12:23
Emne: Re: st: ROC-curves

Hi Ragnhild:

Since I did not see any replies,  I'm giving you some ideas (the ones I

a) You can get the 95%CI for the AUC using bootstrapping:

program bootroc, rclass
     quietly logit "your model goes here"
     quietly lroc, nograph
     return scalar area=r(area)

bootstrap roc=r(area), reps(1000) : bootroc
stat bootstrap, all

b) you can save the predicted probabilities using  "predict double prob,
xb". Then you can use -rocreg- with "roc(1-spec value)" option. Also,
the predicted probabilities can be used with other roc commands that
give 95%CI with different methods (Hanley, deLong...)

Take a look at this page:

Anyway, I'm sure that others can give more detailed explanations, and
better ideas than these ones.

Marta Garcia-Granero

El 14/10/2013 18:54, Ragnhild Bergene Skråstad escribió:
 > Hi!
 > I investigate how diffrent tests, in combination, can predict a given
 > I have made a logistic model with the command "logistic" and plotted
the ROC-curve with the command "lroc". This cave me the ROC-curve and
the AUC. I wonder:
 > - how can I get the 95 % CI for this AUC?
 > and
 > - I would like to get the sensitivity at a given fixed false-positive
rate. Do I have to get all the coordinates on the ROC curve and identify
the one at the FPR at interest- and if so, how do I do that, or is it a
direct way to do this?
 > best wishes
 > Ragnhild B Skråstad

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index