Statalist The Stata Listserver


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

Re: st: Logistic regression, changing order of variables


From   "Neil Shephard" <[email protected]>
To   [email protected]
Subject   Re: st: Logistic regression, changing order of variables
Date   Fri, 22 Jun 2007 14:46:53 +0100

On 6/22/07, Todd Swarthout <[email protected]> wrote:
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.

See -man xi- pages under the heading "Summary of controlling the
omitted dummy" to alter which dummy variable is omitted and used as
reference.

Neil

--
"In mathematics you don't understand things. You just get used to
them."  - Johann von Neumann

Email - [email protected] / [email protected]
Website - http://slack.ser.man.ac.uk/
Photos - http://www.flickr.com/photos/slackline/
*
*   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