Dear Stata-folks,
Happy new year 😊
I’ve encountered a problem when executing a 2sls panel data model via the xtivreg command. The issue stems from my data which surmises product sales, price and release time plus some controls. The products are sold over three separate sales channels which I can control via the i.channel dummy.
Using xtreg, naturally, this works out fine. The individual effects for the three channels are displayed nicely if using the command
Thus, the shortened results looks something like this:

However, for the IV model, I have to work with additional brackets, and cannot figure out how to properly command stata to include price and time as well in the categorical variable set.
Essentially the problem boils down to this:
Thanks a lot in advance 😊
Happy new year 😊
I’ve encountered a problem when executing a 2sls panel data model via the xtivreg command. The issue stems from my data which surmises product sales, price and release time plus some controls. The products are sold over three separate sales channels which I can control via the i.channel dummy.
Using xtreg, naturally, this works out fine. The individual effects for the three channels are displayed nicely if using the command
Code:
xtreg sales i.channel#(price time control1 control2), re

However, for the IV model, I have to work with additional brackets, and cannot figure out how to properly command stata to include price and time as well in the categorical variable set.
Essentially the problem boils down to this:
Code:
xtreg sales price time control1 control2 i.channel, re => xtreg sales i.channel#(price time control1 control2), re xtivreg sales (price time = iv1 iv2) control1 control2 i.channel, re => ?
