Hey, i have a panel data, i need to add a Race_grade fixed effect and i have two separate variables grade and race. In order to create Race_grade fixed effect i used gen Race_grade = race*grade, seems like it worked but i was also considering to use this code egen Race_grade= group(Race grade). Which of the codes is better and if there is any difference between them?
0 Response to Creating Fixed effect
Post a Comment