Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: AW: xtreg or xtmixed?


From   "Trelle Sven" <strelle@ctu.unibe.ch>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: xtreg or xtmixed?
Date   Mon, 19 Dec 2011 11:47:11 +0100

Dear Johan,
it looks as if your dependent variable is binary/dichotomous. I would look into xtlogit (RE).

This might be of help: http://www.ats.ucla.edu/stat/stata/topics/MLM.htm


Sven



> -----Ursprüngliche Nachricht-----
> Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] Im Auftrag von Johan van der Watt
> Gesendet: Montag, 19. Dezember 2011 10:44
> An: statalist@hsphsun2.harvard.edu
> Betreff: st: xtreg or xtmixed?
> 
> Hi
> I need to do longitudinal statistics on a panel data set of 150 individuals over 4
> different time points. My dependent variable is the development of
> neuropathy (everyone is neuropathy free at baseline assessment), and a
> have numerous continuous independent variables/possible risk factors for
> development of neuropathy, such as
> CD4 count. A few of the continuous variables are not normally distributed,
> and I am able to normalize most of them by either logging or square rooting
> them. Further, looking at these variables over time, some of them also do
> not follow a linear pattern, i.e they peak at visit 2 or 3 then go down at visit 4.
> I have used the -xtreg- command with -mle-, using a continuous variable,
> such as CD4 count, Neuropathy, and Visit:
> 
> xtreg cd4_  neuropathy visit, i(patientno2) mle
> 
> but after reading online articles and bulletin boards,  I have also tried the
> mixed effects model:
> 
> xtmixed cd4_  neuropathy visit ||  patientno2:,mle
> 
> As I am a stats amateur, is this what I am doing correct? Any other options?
> 
> Thanks
> 
> *
> *   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index