Dear all,
I know how to use xi to do fixed effect,
For example, suppose I want to do a firm fixed effect
My question is how do I do a two variable combined fixed effect
e.g. I want to do firm and merger deal fixed effect, given that one firm can show up in more than one mergers,
if firm is identified as firmid, merger deal is coded with dealid , taking interger value 1~100
how do I generate the new category based on both firmid and dealid ?
just to clarify,
Xtreg y x1 x2 i.firmid i.dealid, fe
is not what I am asking, I want to pair firmid and dealid together using a new varaible.
Thanks,
Rochelle
I know how to use xi to do fixed effect,
For example, suppose I want to do a firm fixed effect
Code:
xi i.firmid global dummies _Ifirmid * Xtreg y x1 x2 $dummies, fe Or Xtreg y x1 x2 i.firmid, fe
e.g. I want to do firm and merger deal fixed effect, given that one firm can show up in more than one mergers,
if firm is identified as firmid, merger deal is coded with dealid , taking interger value 1~100
how do I generate the new category based on both firmid and dealid ?
just to clarify,
Xtreg y x1 x2 i.firmid i.dealid, fe
is not what I am asking, I want to pair firmid and dealid together using a new varaible.
Thanks,
Rochelle
Comment