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]

Re: st: longitudinal data

From   "joshua liwindi" <>
Subject   Re: st: longitudinal data
Date   Mon, 13 Jun 2011 15:05:14 +0000

Thanks clyde
am looking at your suggestions


  ----- Original Message -----
  From: Clyde Schechter
  Sent: 06/13/11 05:57 PM
  Subject: st: longitudinal data
Much depends on details that you don't state in your post. One thing that
can be said without further knowledge: your analysis will almost certainly
require you put your data in long form. There just aren't a whole lot of
Stata analysis commands that work best with wide data. See -help reshape-
for that.

I can't tell from your description what your outcome variable is. Is it
the actual count of gametocytes, or is it the presence of any gametocytes
(i.e. count > 0)? As you speak of prevalence in your post, I'm guessing
it's the latter. If so, take a look at -xtlogit-. If the former, have a
look at -xtpoisson- or -xtnbreg- for starters.

In any case, you also need to think about how to represent time in your
analysis. What kind of trajectory of gametocyte counts (or histories of
presence/absence) need to be modeled: (logit-)linear in time, V-shaped,
upside-down V-shaped, U-shaped, more complicated, even arbitrary? You
will need to look into splines perhaps (-help mkspline-), or for an
arbitrary time course represent time as a factor variable.

One more thing: my suggestions presume each subject is enrolled in only
one study arm. If you have a crossover design, then there are further
complications and you may need to look at -xtmixed- or -xtmelogit- or
something like that.

Hope this helps get you started.

Clyde Schechter
Albert Einstein College of Medicine
Bronx, NY, USA

Original Message:

Hi all,
 I would like to get a hint in the easiest way to analyse this data, am
not very
good in STATA and more so with Biostatistics.
 I have a data set with data from an anti-malarial study with 3 arms
and two active arms, (SP+AS3) and (SP+AS2).
 gametocytes count is measured at days 0,1,2,7,14,21 and 28
The dataset is presented in a wide format
am intrested in effectiveness of treatment on gametocytes count and its
during the 28 days
 1. How do i calculate odds ratio and proportions and ??2. p values of (SP
vs AS1)
and (SP vs AS2) and
 3. Corresponding p values of difference in the prevalence in those two
groups with
their respective 95% confidence intervals for the days above.

 Do I need to change the data set to a long format or I can do all this
with the current wide format.



Clyde Schechter, MA MD
Associate Professor of Family & Social Medicine

Please note new e-mail address:

* For searches and help try:
*   For searches and help try:

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