I have several dependent variables and am running a loop. The goal is to save the regression results in a LaTeX table. I need in this table to have the dependent variables d20_07_19 d30_07_19 d40_07_19 d50_07_19 d60_07_19 as headers in each column. For example:
d20_07_19 | d30_07_19 | d40_07_19 | d50_07_19 | d60_07_19 |
foreach y of varlist d20_07_19 d30_07_19 d40_07_19 d50_07_19 d60_07_19 {
eststo TR1_6_`y' : cgmreg `y' a b c d e f i.dcode, cluster(ccode dcode)
esttab TR1* using output_.1.tex, append b(3) se(3) ar2(3) ///
se star(^{*} 0.1 ^{**} 0.05 ^{***} 0.01) title(OLS regression estimates)
eststo clear
}
0 Response to For loop: Possibility to append columns to the right in a table
Post a Comment