Hi all,
I would like some insights for understanding the output differences between the two settings around interaction terms. Here below are the codes:
xtset isin_num weekid
xtreg wncf institutional_dummy#post_1 if weekid >= 56 & weekid <= 64, fe
Here, isin_num is a unique code for open-ended funds. wncf is the abbreviation of weekly net cash flow. institutional_dummy equals 1 if a fund is for institutional investors and 0 otherwise. post_1 equals 1 when the first type of treatment occurs. These codes just represent the very basic version of my model, so I have not included more variables. I use # instead of ## as I have enrolled two-way fixed effects. Here below are the outputs:

There are some red flags. For example, it is said, "note: 1.institutional_dummy#1.post_1 omitted because of collinearity". It is also hard to understand why the software is giving coefficients for 0 1, 1 0, and 1 1 separately. So, I tried adding the interaction term manually. Theoretically, these two ways should generate the same results and meet the same issue. However, after running the code below, the results are not the same:
gen interact_1 = institutional_dummy*post_1, after(post_2)
xtreg wncf interact_1 if weekid >= 56 & weekid <= 64, fe

As you can see, there are no warnings after running this code. What is the reason for the difference between these two settings?
I would like some insights for understanding the output differences between the two settings around interaction terms. Here below are the codes:
xtset isin_num weekid
xtreg wncf institutional_dummy#post_1 if weekid >= 56 & weekid <= 64, fe
Here, isin_num is a unique code for open-ended funds. wncf is the abbreviation of weekly net cash flow. institutional_dummy equals 1 if a fund is for institutional investors and 0 otherwise. post_1 equals 1 when the first type of treatment occurs. These codes just represent the very basic version of my model, so I have not included more variables. I use # instead of ## as I have enrolled two-way fixed effects. Here below are the outputs:
There are some red flags. For example, it is said, "note: 1.institutional_dummy#1.post_1 omitted because of collinearity". It is also hard to understand why the software is giving coefficients for 0 1, 1 0, and 1 1 separately. So, I tried adding the interaction term manually. Theoretically, these two ways should generate the same results and meet the same issue. However, after running the code below, the results are not the same:
gen interact_1 = institutional_dummy*post_1, after(post_2)
xtreg wncf interact_1 if weekid >= 56 & weekid <= 64, fe
As you can see, there are no warnings after running this code. What is the reason for the difference between these two settings?
Comment