Dear all,
I am trying to create a table showing my diff-in-diff results. The data has three different outcome variables and four binary treatments. The outcome variables are supposed to be different rows and the treatments the different columns. So far I managed to create a table that combines the results for the same outcome variable across the four treatments in a 1x4 matrix format using the following commands:
Repeating the same steps for outcome2 and then running
just adds a second table next to my first. What I want is, however, that they are below each other and combined into one, single table. Is that possible? I am not set on using esttab.
I am using Stata18.
Thanks!
I am trying to create a table showing my diff-in-diff results. The data has three different outcome variables and four binary treatments. The outcome variables are supposed to be different rows and the treatments the different columns. So far I managed to create a table that combines the results for the same outcome variable across the four treatments in a 1x4 matrix format using the following commands:
Code:
eststo b_out1_treat1: diff outcome1, treated(treatment1) period(period) kernel id(parent_key) pscore(pscore_treat_any) support bs rep(50) report eststo b_out2_treat2: diff outcome1, treated(treatment2) period(period) kernel id(parent_key) pscore(pscore_housing) support bs rep(50) report eststo b_out3_treat3: diff outcome1, treated(treatment3) period(period) kernel id(parent_key) pscore(pscore_pledge) support bs rep(50) report eststo b_out4_treat4: diff outcome1, treated(treatment4) period(period) kernel id(parent_key) pscore(pscore_treat_either) support bs rep(50) report esttab b_out1_treat1 b_out1_treat2 b_out1_treat3 b_out1_treat4 using test1.tex, replace se(3) b(3) star(* 0.1 ** 0.05 *** 0.01) nonotes noobs keep(b__diff) coeflabels(b__diff "Outcome 1")
Code:
esttab b_out2_treat1 b_out2_treat2 b_out2_treat3 b_out2_treat4 using test1.tex, append se(3) b(3) star(* 0.1 ** 0.05 *** 0.01) nonotes noobs keep(b__diff) coeflabels(b__diff "Outcome 2")
I am using Stata18.
Thanks!