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]

Re: st: Order of variables in stcox model


From   Ricardo Ovaldia <ovaldia@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Order of variables in stcox model
Date   Sun, 14 Aug 2011 06:13:05 -0700 (PDT)

Sami Alameen <samialameen@gmail.com> wrote:

 The order doesn't matter except for
> the first variable, which is the
> dependent variable, so changing it measures a different
> thing!!!!

Sami is incorrect!!
These are time-to-event models. You -stset- the data and time or more precisely -_t-  becomes your "dependent" variable of sorts. All the variables after -xtcox- are independent variables and their order in the model does not matter.

Ricardo

Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK


--- On Sun, 8/14/11, Sami Alameen <samialameen@gmail.com> wrote:

> From: Sami Alameen <samialameen@gmail.com>
> Subject: Re: st: Order of variables in stcox model
> To: statalist@hsphsun2.harvard.edu
> Date: Sunday, August 14, 2011, 7:05 AM
> The order doesn't matter except for
> the first variable, which is the
> dependent variable, so changing it measures a different
> thing!!!!
> *
> *   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