Dear Stata Users,
Can you, please advise me on the way of clusterization of residuals by firm and year. I use the following comman:
Will this be the same if I group firm identifier (gvkey) with the year and then use this group while clustering? Something like this:
The reason why I ask this, is that when I use models that dont have dummies as exogenous variables, the results are almost the same. However, once there is a dummy, the coefficient of the dummy variable changes dramatically.
Please, advise me this issue.
Can you, please advise me on the way of clusterization of residuals by firm and year. I use the following comman:
Code:
reghdfe y x1 x2 x3, absorb(gvkey_destrfyear) vce(cluster gvkey_destr fyear)
Code:
egen res_cl = group(fyear gvkey_destr) areg y x1 x2 x3 i.fyear, absorb(gvkey_destr) vce(cluster res_cl)
Please, advise me this issue.
Comment