Hi All,
I am currently facing a tricky problem while using reghdfe. I have noticed that the number of observations and firms is slightly different when including versus not including fixed effects (Please see the case below). However, I have no idea which observations are dropped and why, or how I can find them.
I would appreciate any help you can provide.
Many thanks
I am currently facing a tricky problem while using reghdfe. I have noticed that the number of observations and firms is slightly different when including versus not including fixed effects (Please see the case below). However, I have no idea which observations are dropped and why, or how I can find them.
I would appreciate any help you can provide.
Many thanks
Code:
. reghdfe dependant independent if dev == 0, noabsorb vce (cluster firmid)
(MWFE estimator converged in 1 iterations)
HDFE Linear regression Number of obs = 35,826
Absorbing 1 HDFE group F( 1, 7540) = 17.05
Statistics robust to heteroskedasticity Prob > F = 0.0000
R-squared = 0.0014
Adj R-squared = 0.0014
Within R-sq. = 0.0014
Number of clusters (firmid) = 7,541 Root MSE = 3.9658
(Std. err. adjusted for 7,541 clusters in firmid)
------------------------------------------------------------------------------
| Robust
dependant | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
independent | -.1597525 .0386879 -4.13 0.000 -.2355915 -.0839135
_cons | 5.797309 .0543657 106.64 0.000 5.690737 5.903881
------------------------------------------------------------------------------
.
. reghdfe dependant independent if dev == 0, absorb(country industry year) vce (cluster firmid)
(MWFE estimator converged in 7 iterations)
HDFE Linear regression Number of obs = 35,824
Absorbing 3 HDFE groups F( 1, 7539) = 50.53
Statistics robust to heteroskedasticity Prob > F = 0.0000
R-squared = 0.2034
Adj R-squared = 0.2019
Within R-sq. = 0.0035
Number of clusters (firmid) = 7,540 Root MSE = 3.5456
(Std. err. adjusted for 7,540 clusters in firmid)
------------------------------------------------------------------------------
| Robust
dependant | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
independent | -.2340908 .0329301 -7.11 0.000 -.298643 -.1695386
_cons | 5.873444 .0449965 130.53 0.000 5.785238 5.961649
------------------------------------------------------------------------------

Comment