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

st: RE: effect coding in STATA


From   "Stephen McDonald" <stephenm@anzdata.org.au>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: effect coding in STATA
Date   Thu, 6 Feb 2003 06:21:55 +1030

Sounds like "Deviation contrast". This, and a variety of different means of
coding are available in -xi2- and -desmat- packages.

Stephen McDonald

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Sarrazin, Mary
Sent: Thursday, 6 February 2003 6:03 AM
To: 'statalist@hsphsun2.harvard.edu'
Subject: st: effect coding in STATA


I need to run a logistic regression on some mortality data, but need to
obtain odds ratios that are based on "effect" coding, rather than the
traditional "reference" coding.  I generally use SAS, in which it is easy to
request effect coding (so that odds ratios reflect the odds of dying
compared to the "average" patient, rather than compared to some reference
category), but would rather perform this analyses using STATA if possible.
I have searched through the STATA documentation and can't find any mention
of this coding.  Is there a way to do this in STATA?

Thanks,
Mary Sarrazin


*
*   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