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

st: xi3 and deviation coding


From   Naji <nassar@noos.fr>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: xi3 and deviation coding
Date   Wed, 23 Mar 2005 18:58:48 +0100

HI all,

I'd like to use deviation coding and to have all the coefficients for each
categorical variable sum to zero.
Right now I'm using xi3 deviation & lincom
xi3: regress y e.x1 e.x2
Lincom -_Ix1_2-_Ix1_3-_Ix1_4 (for x1=1)
Lincom -_Ix2_2-_Ix2_3-_Ix2_4 (for x2=1)
Lincom _cons+_Ix1+...._Ix2_4 for the new constant

Is it a more convenient way to achieve this?

Thanks for your help
Naji


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