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]

st: RE: calculation of area under curve with stata

From   Joe Canner <>
To   "" <>
Subject   st: RE: calculation of area under curve with stata
Date   Mon, 14 Oct 2013 13:12:10 +0000


One possibility, in addition to that already suggested is this:

. logit outcome predictors
. lroc

You can also compare AUCs using:

. logit outcome predictor1
. lroc
. predict xb_predictor1 if e(sample), xb
. logit outcome predictor2
. lroc
. predict xb_predictor2 if e(sample), xb
. roccomp outcome xb_predictor1 xb_predictor2, graph summary

You can compare more than two AUCs as desired; just repeat the -logit-, -lroc-, -predict-  sequence.

Joe Canner
Johns Hopkins University School of Medicine

-----Original Message-----
From: [] On Behalf Of elmir
Sent: Monday, October 14, 2013 4:38 AM
Subject: st: calculation of area under curve with stata

Dear All, 

I am analyzing the blood pressure (BP) levels from the three different groups of animals. BP was measured repeatedly in every animal at 10 different time points within 90 minutes from the start of the experiment.
The animals were exposed to 3 different drugs (each group n=8).

I understand that one way to compare the effect of the drugs on blood pressure within the whole experimental period would be to calculate the area under the curve and to use this value in a linear mixed model. 

I would be very grateful if someone could help me with step-by-step instructions how to calculate AUC in stata.

Kind regards

Elmir Omerovic MD, PhD
Sahlgrenska University Hospital
Gothenburg, Sweden

View this message in context:
Sent from the Statalist mailing list archive at
*   For searches and help try:

*   For searches and help try:

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