Dear Stata users,
I am using jwdid for repeated cross-section data and I need help with extracting the results to tex file. Here is my command and output:
Here is output is output:
Can anyone please help me with changing the variable names in
(2 vs 1) 0 to 2012 and report the stars with the coefficients like in a normal regression output table with R-squared and observation numbers?
Thank you very much and appreciate your help!
Odmaa
I am using jwdid for repeated cross-section data and I need help with extracting the results to tex file. Here is my command and output:
Code:
jwdid l_foodexp, ivar(province) tvar(year) gvar(first_treat)
HTML Code:
WARNING: Singleton observations not dropped; statistical significance is biased (link)
(MWFE estimator converged in 4 iterations)
warning: missing F statistic; dropped variables due to collinearity or too few clusters
HDFE Linear regression Number of obs = 10,353
Absorbing 2 HDFE groups F( 5, 4) = .
Statistics robust to heteroskedasticity Prob > F = .
R-squared = 0.1385
Adj R-squared = 0.1375
Within R-sq. = 0.0240
Number of clusters (province) = 5 Root MSE = 0.5135
(Std. Err. adjusted for 5 clusters in province)
-------------------------------------------------------------------------------------------
| Robust
l_foodexp | Coef. Std. Err. t P>|t| [95% Conf. Interval]
--------------------------+----------------------------------------------------------------
first_treat#year#c.__tr__ |
2012 2012 | .2121429 .0181509 11.69 0.000 .1617479 .2625379
2012 2014 | .2535702 .0747805 3.39 0.028 .0459463 .461194
2012 2016 | .1451341 .0641317 2.26 0.086 -.0329239 .3231922
2014 2014 | .4897936 .0747805 6.55 0.003 .2821698 .6974175
2014 2016 | .5608173 .0641317 8.74 0.001 .3827592 .7388754
|
_cons | 10.77596 .0080662 1335.94 0.000 10.75356 10.79835
-------------------------------------------------------------------------------------------
Absorbed degrees of freedom:
-----------------------------------------------------+
Absorbed FE | Categories - Redundant = Num. Coefs |
-------------+---------------------------------------|
province | 5 5 0 *|
year | 4 0 4 |
-----------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation
Code:
estat event, estore(eq1)
HTML Code:
-------------------------------------------------------------------------------
| Delta-method
| Coef. Std. Err. z P>|z| [95% Conf. Interval]
--------------+----------------------------------------------------------------
_at@__event__ |
(2 vs 1) 0 | .3589371 .0435409 8.24 0.000 .2735985 .4442757
(2 vs 1) 2 | .4285844 .0649037 6.60 0.000 .3013754 .5557933
(2 vs 1) 4 | .1451341 .0641317 2.26 0.024 .0194384 .2708299
-------------------------------------------------------------------------------
Code:
esttab eq1 using "${PAPER}Table4a_jwdid", ///
> replace b(%7.3f) se(%7.3f) f label noobs nomtitle nonum noline ///
> booktabs nowrap nogaps star("*" 0.10 "**" 0.05 "***" 0.01)
eq1
Thank you very much and appreciate your help!
Odmaa
