Dear Statalist Members,
I have a question on how to check for a significant relationship between an explanatory variable and the dependent variable if I also include an interaction term in my regerssion.
For example:
reg y x1 x2 x1*x2
x2 is a dummy and I am interested in the effect of x1 if x2 = 1. Let's assume the coefficient for x1 is not significant, but the one of the interaction term is significant. How can I test whether the overall effect of x1 is significant if x2 = 1?
Is test(x1*x2 = x1 =0) the correct approach?
Any comments are highly appreciated.
Best,
Lisa
I have a question on how to check for a significant relationship between an explanatory variable and the dependent variable if I also include an interaction term in my regerssion.
For example:
reg y x1 x2 x1*x2
x2 is a dummy and I am interested in the effect of x1 if x2 = 1. Let's assume the coefficient for x1 is not significant, but the one of the interaction term is significant. How can I test whether the overall effect of x1 is significant if x2 = 1?
Is test(x1*x2 = x1 =0) the correct approach?
Any comments are highly appreciated.
Best,
Lisa
Comment