Hi Everybody!
Can someone help me with a formatting issue I have with my Stata code? I'm using esttab to create tables (see code below). Now this is not very pretty, since it puts the significance-stars behind my coefficients, which then does not align well with the SE and everything else. I have seen people use the "stardetach" option to solve this problem. However, I had problems finding a way on how to implement this into my code, without it looking very differently. Can someone help me?
This is my current code creating my tables, which gives me the table below:
Can someone help me with a formatting issue I have with my Stata code? I'm using esttab to create tables (see code below). Now this is not very pretty, since it puts the significance-stars behind my coefficients, which then does not align well with the SE and everything else. I have seen people use the "stardetach" option to solve this problem. However, I had problems finding a way on how to implement this into my code, without it looking very differently. Can someone help me?
This is my current code creating my tables, which gives me the table below:
Code:
esttab col1 col2 col3 using "$tables/TABLE1.tex", replace /// noobs nomti nonumb /// prehead("\begin{tabular}{lccc}" /// "%" "\addlinespace" "%" /// "%" "\toprule" "%" /// " & \multicolumn{1}{c}{Attended} & \multicolumn{1}{c}{Hours} & \multicolumn{1}{c}{Overnight}\\" /// " & \multicolumn{1}{c}{Test Run} & \multicolumn{1}{c}{in Prison} & \multicolumn{1}{c}{in Prison}\\" /// " & (1) & (2) & (3) \\" /// "%" "\midrule " "%") /// b(3) se star(* .1 ** .05 *** .01) /// keep($coeff ) /// order($coeff ) /// varlabels($coeff_label1) /// substitute(\_ _ [1em] ) /// gaps nolines noeqlines /// prefoot("\midrule Strata FE & \checkmark & \checkmark & \checkmark\\") /// stats(ymean N, labels("\midrule Control group mean" "Observations") fmt(3 a0)) /// postfoot("\bottomrule" /// "\end{tabular}")
Comment