Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: interactions


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: interactions
Date   Wed, 31 Mar 2010 18:37:38 +0000 (GMT)

--- On Wed, 31/3/10, riyadh shamsan wrote:
> need to make interaction between 2
> cat variables each with different
> levels. (Ethnicity coded as 1,2,3 and 4) &
> (co-morbidity coded as 0,1,2,3)
> I need my reference group to be the group with ethnicity 1
> & co-morbidiy 0 and compare other combination with this
> group

The first line of your question got zapped by 
by the listserver (this sometimes happens on the
statalist), so I am infering some of the details
of your question.

The answer would something like:
regress y ib1.ethnicity##ib0.comob

See -help fvvarlist-.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index