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?
Related Posts with Creating Fixed effect
Reshaping categorical variablesHello Statalisters, I am facing the following problem. This is what my data looks like: Code: inp…
rangestat questionHellow I have a question in rangestat why do I always get the result that never calculates? My mean …
PLEASE HELP: "Convergence not achieved" errorHi, I am using xtgee command to estimate DP with IV in fractional form on a balanced panel data but …
Reshaping categorical variablesHello Statalisters, I am facing the following problem. This is what my data looks like: Code: inp…
Panel data with small T small N and endogenous variableI have a panel data with small T (T = 11) small N (N=18) with 01 endogenous variable. Which methodol…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Fixed effect
Post a Comment