When you use my user written command fdid to do
you get
The table of interest, specifically, is
Okay, this is well and good. But, I want to make this esttab-able (by Ben Jann, of course, on ssc). At present, when I do
I get
Okay, well.... how would I be able to reproduce the table fdid prints, with esttab. Presumably, I must do something under the hood. For reference, the table to start with would be
Perhaps daniel klein or Bjarte Aagnes would be able to comment, should they be available?
Code:
clear * cls net install fdid, from("https://raw.githubusercontent.com/jgreathouse9/FDIDTutorial/main") replace net get fdid, from("https://raw.githubusercontent.com/jgreathouse9/FDIDTutorial/main") replace qui u smoking, clear fdid cigsale, tr(treated) unitnames(state) ereturn list
Code:
scalars: e(T1) = 19 e(T0) = 20 e(T2) = 12 e(T) = 31 e(r2) = .9989 e(DDr2) = .6039 e(rmse) = 1.2821 e(N0U) = 4 e(DDATT) = -27.3491 e(pDDATT) = -31.1852 e(pATT) = -18.4423 e(CILB) = -14.5486 e(ATT) = -13.6467 e(CIUB) = -12.7448 e(se) = .4602 e(tstat) = 29.66 macros: e(cmd) : "." e(U) : "Montana, Colorado, Nevada, Connecticut," matrices: e(series) : 31 x 9 e(results) : 1 x 8
Code:
Forward Difference-in-Differences T0 R2: 0.999 T0 RMSE: 1.282 ----------------------------------------------------------------------------------------- cigsale | ATT Std. Err. t P>|t| [95% Conf. Interval] -------------+--------------------------------------------------------------------------- treated | -13.64671 0.46016 29.66 0.000 -14.54861 -12.74481 ----------------------------------------------------------------------------------------- Treated Unit: California FDID selects Montana, Colorado, Nevada, Connecticut, as the optimal donors. See Li (2024) for technical details.
Code:
clear * cls //net install fdid, from("https://raw.githubusercontent.com/jgreathouse9/FDIDTutorial/main") replace //net get fdid, from("https://raw.githubusercontent.com/jgreathouse9/FDIDTutorial/main") replace qui u smoking, clear fdid cigsale, tr(treated) unitnames(state) esttab
Code:
---------------------------- (1) ---------------------------- ---------------------------- N ---------------------------- t statistics in parentheses * p<0.05, ** p<0.01, *** p<0.001
Code:
mat l e(results) e(results)[1,8] ATT PATT SE t LB UB R2 RMSE Statistics -13.646711 -18.442321 .46016222 29.656305 -14.548612 -12.74481 .99890459 1.28215
Comment