[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: xi3 and two interactions
I have two interaction terms in my linear regression model, which looks like this:
xi: reg y i.x1*i.x2 i.x1*i.x3
so, the first term in each interaction is x1. I would like to include the main effect of x1 in the interaction term.
Normally, with only one interaction, I do this with .xi3 like this
xi3: reg y email@example.com
If I use xi3 in the first model then it looks like this:
xi3: reg y firstname.lastname@example.org email@example.com
but now I still have to use .lincom to calculate every linear combination of x1 that is possible.
Is there an easier way to do this?
* For searches and help try: