Hi all,
I would like to repeat three different regressions for various outcome variables. I would like to show the results in one big table. It should look like this:

Right now I use:
This gives methe column Model 1. How do I append Model 2 and 3?
Repeating the code
and using "append" does not only append the results from Model 2 but also the first column (The Outcome names and "Control variables") once again. Does someone know how to fix this or a different way how to get the desired table?
Thanks in advance,
Kathrin
I would like to repeat three different regressions for various outcome variables. I would like to show the results in one big table. It should look like this:
Right now I use:
Code:
local varlist "outcome1 outcome2 ..." foreach x of local varlist{ eststo m`x' : reg `x' dummy, robust } esttab using r, p keep(dummy) replace mat list r(coefs) mat rename r(coefs) Model1 esttab matrix(Model1, transpose) using filename.tex, replace
Repeating the code
Code:
foreach x of local varlist{ eststo m`x' : reg `x' dummy i.year, robust } esttab using r, p keep(dummy) replace mat list r(coefs) mat rename r(coefs) Model2 esttab matrix(Model2, transpose) using filename.tex, append
Thanks in advance,
Kathrin
Comment