Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Logistic regression, changing order of variables


From   "Todd Swarthout" <[email protected]>
To   <[email protected]>
Subject   st: Logistic regression, changing order of variables
Date   Fri, 22 Jun 2007 15:33:45 +0200

Hello everyone.

I am using logistic regression in the analysis of a database coming from
a study in Zimbabwe.  A sample command is 'xi:logistic hiv i.age3 sexc
age'

The variable age3 is the age in 3 strata (2-4yrs, 5-11yrs, 12-17yrs). As
I currently have the coding, 0=2-4yrs, 1=5-11yrs, and 2=12-17yrs. Thus
the strata 2-4yrs is the point of comparison. In this case, the two
older strata both showed a reduced risk of infection.

However, I prefer to report the data in the context of which strata has
increased risk of infection. Is there a command I can use (or add to the
existing command 'xi:logistic hiv i.age3 sexc age') that would allow me
to change the order of strata during logistic analysis. That is to say,
if I want to use the 12-17 yr strata as the point of
comparison...without having to create a new variable in which I change
the coding.

Thank you 

Todd

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index