Bookmark and Share

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


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

Re: st: Order of variables in stcox model


From   Steven Samuels <[email protected]>
To   [email protected]
Subject   Re: st: Order of variables in stcox model
Date   Sat, 13 Aug 2011 22:53:49 -0400

As Sarah has stated this shouldn't happen. I suggest that you send the data set and  do file to technical support ([email protected]). I don't think there's anything more we can do here.

Steve

On Aug 12, 2011, at 12:51 PM, Brigham Whitman wrote:

Hello.  I am building a model using stcox in Stata 9.2.

My question is: How should I order the variables that I put in the
model?  I get different results depending on how the variables are
ordered.  For example:

xi: stcox  velocity roads snow i.season, nohr strata(sex  age) robust

will produce different results than:

xi: stcox  roads snow velocity i.season, nohr strata(sex  age) robust

To be completely transparent: with my data, sometimes the order of the
variables does not matter for smaller models (less than 4 variables).
But with larger models (more than 6 variables), the results do change
when the order of the variables is changed.

What is the importance of the order of the variables (in this case,
roads, snow, velocity, and i.season) in the model?

Thank you,

Brigham Whitman
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index