Hello Statalist,
I have a question regarding the ommission of a variable in my regression with panel data and year+firm fixed effects.
It is an AGE variable that aims to capture how old a firm is. For example, if the firm is listed in 2019 for the first time, the AGE variable is set to 0, in 2020 it is then set to one and so forth.
There are several papers which include this age variable, and i found that it is left out in my analysis, depending on which code I use.
For the second regression I winsorize the variable. 5 out of 1000 values are changed. Concretely, when the AGE variable is zero, i.e. first time listed.
How is it then that the xtreg does not leave out the AGE variable, but the reghdfe does? I also tried adding+1 to the AGE variable but reghdfe still ommitts it.
Best regards
I have a question regarding the ommission of a variable in my regression with panel data and year+firm fixed effects.
It is an AGE variable that aims to capture how old a firm is. For example, if the firm is listed in 2019 for the first time, the AGE variable is set to 0, in 2020 it is then set to one and so forth.
There are several papers which include this age variable, and i found that it is left out in my analysis, depending on which code I use.
Code:
reghdfe Y1 x1 x2 x3 AGE c2 c3 c4 c5 c6 c7 c8 c9, absorb(FIRM Year) cluster(BUSINESSECTOR) AGE | 0 (omitted) reghdfe Y1 x1 x2 x3 AGE_w c2 c3 c4 c5 c6 c7 c8 c9, absorb(FIRM Year) cluster(BUSINESSECTOR) AGE_w | .10504 .0636969 1.65 0.112 -.0261462 .2362262 xtreg Y1 x1 x2 x3 AGE c2 c3 c4 c5 c6 c7 c8 c9 i.Year, fe vce(cluster BUSINESSECTOR) AGE | .0701199 .0075331 9.31 0.000 .0546052 .0856346
For the second regression I winsorize the variable. 5 out of 1000 values are changed. Concretely, when the AGE variable is zero, i.e. first time listed.
How is it then that the xtreg does not leave out the AGE variable, but the reghdfe does? I also tried adding+1 to the AGE variable but reghdfe still ommitts it.
Best regards
Comment