[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: how to create more than 2-way interaction terms in xi: regressions?
From |
Dan Waldo <[email protected]> |
To |
[email protected] |
Subject |
st: how to create more than 2-way interaction terms in xi: regressions? |
Date |
Fri, 26 Dec 2008 12:01:35 -0500 |
Dear all,
I see that one can create interaction terms in regressions by typing,
for example,
xi: regress income i.age*i.sex
suppose that I wish to interact age and sex with race, though ... Stata
appears to reject
xi: regress income i.age*i.sex*i.race
Is there a way to do this without creating 3 2-way interaction terms? Or
without creating a separate variable that distinguishes people by age,
sex, and race?
Thanks!
*
* 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/