You could try something like this:
sysuse auto, clear
eststo clear
eststo: reg mpg weight if !foreign
eststo: reg mpg weight trunk if !foreign
eststo: reg mpg weight if foreign
eststo: reg mpg weight trunk if foreign
esttab, nomtitles mgroups("Domestic" "Foreign", pattern(1 0 1 0))
Ryan
On Mon, Nov 19, 2012 at 7:59 AM, Marco Francesco <cariboupad@gmx.fr> wrote:
> Dear all,
>
> I am working with this wonderful tool called esttab in order to have nice latex table but I am unable to obtain a specific table display...
>
> Lets suppose I run 2 identical regressions for each population type (A and B) and I would like to obtain a latex table such as:
>
>
>
> TYPE A TYPE B
> reg 1 reg 2 reg 3 reg4
>
> [coefficients..]
>
>
>
> At the moment I am only able to obtain something like
>
> reg1 reg2 reg3 reg4
>
> [coefficients]
>
> by using -eststo after each regression and then using -esttab reg1 reg2 reg3 reg4 to obtain the above table
>
> That is, regressions models are not grouped according to type.. Do you know how to proceed ? mtitle() would unfortunately only change the names of the columns : reg1 etc
>
> Many thanks!
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/