In my model, I regress wages by country-occupation on explanatory variables and country-occupation fixed effects, clustering standard errors at the country level. To automatically drop singletons and reduce computation time, I considered using the user-written program "reghdfe" by Sergio Correia instead of "xreg, fe" (although there is just a single fixed effect, namely the country-occupation identifier). As it should be, point estimates are identical when using both commands. However, standard errors are identical only if I do not cluster standard errors at the country level. With clustering, they are quite a bit smaller when using "reghdfe". Has anybody encountered this issue/ has an idea where the difference comes from?
In the "reghdfe" help-file and online discussions, I only found that xtreg, fe and reghdfe use the same degrees-of-freedom adjustment to account for the fact that my panel variable (country-occupation) is nested in my cluster variable (country)- hence this should not explain the difference.
Related Posts with Difference between clustered standard errors produced by "reghdfe" and "xtreg, fe"
Shading between two lines in a graphDear Statalist, I'm trying to create a shaded area between the two borders of the confidence interv…
OLS vs. Panel regressionHello everyone, actually I got a comment from the journal, I did not understand what the difference …
One sample test of proportionsDear Stata users, I have a question regarding comparing 3 or more percentages within the same popul…
T testHi, I want to compare the coefficient on one variable (i.e. IndVar) from the regressions based on tw…
Bai and Perron (1998) testDear all, I have to test if there are any unknown structural breaks in my panel data. I want to use…
Subscribe to:
Post Comments (Atom)
0 Response to Difference between clustered standard errors produced by "reghdfe" and "xtreg, fe"
Post a Comment