I am trying to add the information about the mean of the outcome variable after using sdid, so I use
to do so. But it seems like sdid did not store ysumm after iteration. So I wonder how can I add the output mean in esttab. Also is there a way to add the Y mean in the graph? Following is the store list return after I run sdid:
And here is an example similar to what I am using:
but I want:
Code:
estadd ysumm
Code:
scalars: e(N_clust) = 49 e(reps) = 50 e(ATT) = -.0819336 e(se) = .0105743 e(N) = 2352 macros: e(cmd) : "sdid" e(title) : "Synthetic Difference-in-Differences" e(vce) : "bootstrap" e(depvar) : "r_wp" e(clustvar) : "state" e(cmdline) : "sdid crime_rate state date treat, vce(bootstrap) covariates(pop_1000 r_black r_notwhite unemploymentrate income_per_capita r_HS r_college lgdp tdate tst.." e(properties) : "b V" matrices: e(b) : 1 x 1 e(V) : 1 x 1 e(difference) : 48 x 2 e(series) : 48 x 3 e(beta) : 11 x 1 e(adoption) : 1 x 1 e(omega) : 48 x 2 e(lambda) : 49 x 2 e(tau) : 1 x 3
Code:
eststo sdid1: sdid crime_rate state date treat, vce(bootstrap) covariates(pop_1000 r_black r_notwhite unemploymentrate income_per_capita r_HS r_college lgdp tdate tstate, optimized) seed(1234) graph g1on esttab sdid1 using "tables/Crime rate.tex", title("Crime rate) starlevel ("*" 0.10 "**" 0.05 "***" 0.01) b(%-9.3f) se(%-9.3f) mtitles( "Drug Crime" ) replace
Code:
Crime Rate ---------------------------- (1) Crime Rate ---------------------------- treat -0.082*** (0.011) ---------------------------- N 2352 ---------------------------- Standard errors in parentheses * p<0.10, ** p<0.05, *** p<0.01
Code:
Crime Rate
-----------------------------------------------------
(1)
Crime Rate
------------------------------------------------------
treat -0.082***
(0.011)
Crime rate average ...
(...)
------------------------------------------------------
N 2352
------------------------------------------------------
Standard errors in parentheses
* p<0.10, ** p<0.05, *** p<0.01
Comment