The specification I would like is the following:
where x and z are continuous variable and d a dummy. Now I know that there are arguments against having the interaction without the interacted terms on their own (i.e. not including z as such in this case) but I believe that in my case this is appropriate.
The problem is that the command
automatically includes z as a variable, meaning it is equivalent to the command
I have not been able to find any way around this. I should also mention that the "naive" way of solving this by creating the interaction by hand is very problematic in my case because I very much need to use margins after the estimation, which is made impossible by that solution.
Thank you for your help!
y = a + b x + c d*z
where x and z are continuous variable and d a dummy. Now I know that there are arguments against having the interaction without the interacted terms on their own (i.e. not including z as such in this case) but I believe that in my case this is appropriate.
The problem is that the command
Code:
reg y x i.d#c.z
Code:
reg y x z i.d#c.z
Thank you for your help!
Comment