Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: creating a referent strata for a categorical variable


From   Lee Sieswerda <Lee.Sieswerda@tbdhu.com>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: creating a referent strata for a categorical variable
Date   Mon, 21 Jul 2003 16:03:22 -0400

At least two user-written commands may be of interest to you: -xi3- and
-desmat-. Both are on SSC.

Lee Sieswerda, Epidemiologist
Thunder Bay District Health Unit
Lee.Sieswerda@tbdhu.com


-----Original Message-----
From: cthompson@dfpm.utah.edu [mailto:cthompson@dfpm.utah.edu] 
Sent: Monday, July 21, 2003 3:40 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: creating a referent strata for a categorical variable 


Greetings Statalisters - 
If I have a categorical variable where the values do not assume 
any sort of natural ordering (i.e. nominal) and I'd like to use 
that variable in a regression analysis (e.g. logistic) with one 
value of the variable serving as the referent - how best to 
achieve??  If I use the - xi: - command, I obtain a series of 
dichotomous variables useful in examining the effect that value 
has relative to all others within that variable, but not 
necessarily relative to my arbitrary referent group.  I 
recognize that I could create a series of dichotomous variables 
using the -gen- command, but it seems there may be an 
alternative way.  Any input is appreciated.
Thanks,
Clint Thompson
*
*   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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index