Dear Statalist respected users,
I am trying to test an interaction term between a continuous variable and a categorical variable that contains 3 categories (1, 2 and 3). Every time I try to do the interaction, Stata removes one category. is there any way I can keep the 3 interactions? Below is the Stata command syntax I am using and the outputs.
xtabond2 tobinq l.tobinq c.pc1##i.catvariable ttlassets3 wleverage fcf yr2-yr16, gmm(l.wtobinq pc1 pc2, lag(2 2)) iv(pc3-pc8 ttlassets3 ind1-ind8 yr2-yr16 wleverage fcf) nolevel small robust noconst

I need to keep the three categories if this is possible.
I also tried creating a categorical variable with 4 categories where the first category contains only 1 observation given the fact that one category should be eliminated by default in Stata, but, again, Stata deleted 2 categories!
Thanks a lot in advance.
Kind regards,
Mohammed
I am trying to test an interaction term between a continuous variable and a categorical variable that contains 3 categories (1, 2 and 3). Every time I try to do the interaction, Stata removes one category. is there any way I can keep the 3 interactions? Below is the Stata command syntax I am using and the outputs.
xtabond2 tobinq l.tobinq c.pc1##i.catvariable ttlassets3 wleverage fcf yr2-yr16, gmm(l.wtobinq pc1 pc2, lag(2 2)) iv(pc3-pc8 ttlassets3 ind1-ind8 yr2-yr16 wleverage fcf) nolevel small robust noconst
I need to keep the three categories if this is possible.
I also tried creating a categorical variable with 4 categories where the first category contains only 1 observation given the fact that one category should be eliminated by default in Stata, but, again, Stata deleted 2 categories!
Thanks a lot in advance.
Kind regards,
Mohammed
Comment