Is it necessary to generate the new variables for the product of the dummy with x1 and x2? Instead of creating new variables, could you just do reg y x1 x2 d2 d2#x1 d2#x2 or am I missing something? And same for the test after, could you not say test d2 d2#x1 d2#x2 or does Stata not allow that?
Is it necessary to generate the new variables for the product of the dummy with x1 and x2? Instead of creating new variables, could you just do reg y x1 x2 d2 d2#x1 d2#x2 or am I missing something? And same for the test after, could you not say test d2 d2#x1 d2#x2 or does Stata not allow that?
Thank you very much for this video. Excellent explanation with relevant examples