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

# Re: st: Area under a curve

 From SR Millis To statalist@hsphsun2.harvard.edu Subject Re: st: Area under a curve Date Fri, 20 May 2011 11:47:40 -0700 (PDT)

```Joshua,

In the two-group design, here's how I calculate AUC as a summary score and then conduct a t test (in Stata:

generate area=(sysbp+sysbp[_n+1])*(time[_n+1]-time)/2 if id==id[_n+1]
collapse (sum) area = area (first) therapy=therapy, by(id)
ttest area, by (therapy)

~~~~~~~~~~~
Scott R Millis, PhD, ABPP, CStat, PStat®
Professor
Wayne State University School of Medicine
Email:  aa3379@wayne.edu
Email:  srmillis@yahoo.com
Tel: 313-993-8085

--- On Fri, 5/20/11, joshua liwindi <liwindi@gardener.com> wrote:

> From: joshua liwindi <liwindi@gardener.com>
> Subject: st: Area under a curve
> To: statalist@hsphsun2.harvard.edu
> Date: Friday, May 20, 2011, 9:57 AM
> Hi all
> i have these data set that has a three treatment arm trial
> on antimalarials, comparing sulphadoxin pyrimethamine(SP)
> which was the placebo arm VERSUS artesunte one day (AS1) +
> SP AND artesunate for 3 days + SP..am interested in looking
> at the effect of the drugs on gametocytamia during follow up
> period i.e day 0.1,2,3,7,14,21,and 28.i want to calculate
> the AREA UNDER THE CURVE (AUC) as a summary statistic for
> each of the treatment arms
>
> Any help please
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```