Dear Stata Community,
I am new to Stata and attempting to use the command reghdfe to run a fixed effects regression model.
I have panel data and I am trying to identify if I have a problem with my model.
From my understanding, model (1) has FUNDID and year fixed effects, while model (2) has FUNDID and industry-year fixed effects.
I am not able to derive any meaningful results, is this due to an error in my Stata commands or my model?
Thanks in advance
I am new to Stata and attempting to use the command reghdfe to run a fixed effects regression model.
I have panel data and I am trying to identify if I have a problem with my model.
From my understanding, model (1) has FUNDID and year fixed effects, while model (2) has FUNDID and industry-year fixed effects.
I am not able to derive any meaningful results, is this due to an error in my Stata commands or my model?
Thanks in advance
Code:
. gen did = post*buyout . . xtset FUNDID year Panel variable: FUNDID (unbalanced) Time variable: year, 2004 to 2022, but with gaps Delta: 1 unit . . reghdfe abnormal_return did FEDFUNDS CAPITALCALLED, absorb(FUNDID year) vce (cluster FUNDID) (MWFE estimator converged in 5 iterations) HDFE Linear regression Number of obs = 6,798 Absorbing 2 HDFE groups F( 3, 400) = 1.98 Statistics robust to heteroskedasticity Prob > F = 0.1158 R-squared = 0.7408 Adj R-squared = 0.7237 Within R-sq. = 0.0023 Number of clusters (FUNDID) = 401 Root MSE = 8.9595 (Std. err. adjusted for 401 clusters in FUNDID) ------------------------------------------------------------------------------- | Robust abnormal_re~n | Coefficient std. err. t P>|t| [95% conf. interval] --------------+---------------------------------------------------------------- did | .1660538 .5897697 0.28 0.778 -.9933817 1.325489 FEDFUNDS | -.2892291 .2423715 -1.19 0.233 -.7657101 .187252 CAPITALCALLED | .0218505 .0391232 0.56 0.577 -.0550622 .0987632 _cons | -1.808622 3.930622 -0.46 0.646 -9.535882 5.918637 ------------------------------------------------------------------------------- Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| FUNDID | 401 401 0 *| year | 19 0 19 | -----------------------------------------------------+ * = FE nested within cluster; treated as redundant for DoF computation . . xtset FUNDID Panel variable: FUNDID (unbalanced) . . egen industry_year = group(INDUSTRYCODE year) . . reghdfe abnormal_return did FEDFUNDS CAPITALCALLED, absorb(FUNDID industry_year) vce (cluster FUNDID) (dropped 12 singleton observations) (MWFE estimator converged in 6 iterations) HDFE Linear regression Number of obs = 6,786 Absorbing 2 HDFE groups F( 3, 400) = 1.57 Statistics robust to heteroskedasticity Prob > F = 0.1954 R-squared = 0.7439 Adj R-squared = 0.7175 Within R-sq. = 0.0019 Number of clusters (FUNDID) = 401 Root MSE = 9.0533 (Std. err. adjusted for 401 clusters in FUNDID) ------------------------------------------------------------------------------- | Robust abnormal_re~n | Coefficient std. err. t P>|t| [95% conf. interval] --------------+---------------------------------------------------------------- did | .2627558 .5985009 0.44 0.661 -.9138445 1.439356 FEDFUNDS | -.2742179 .2503795 -1.10 0.274 -.766442 .2180062 CAPITALCALLED | .0190326 .0399639 0.48 0.634 -.0595328 .0975981 _cons | -1.611685 4.010707 -0.40 0.688 -9.496384 6.273014 ------------------------------------------------------------------------------- Absorbed degrees of freedom: -------------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | ---------------+---------------------------------------| FUNDID | 401 401 0 *| industry_year | 231 0 231 | -------------------------------------------------------+ * = FE nested within cluster; treated as redundant for DoF computation
Comment