Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Grouping regressions with Esttab
From
Ryan Kessler <[email protected]>
To
[email protected]
Subject
Re: st: Grouping regressions with Esttab
Date
Mon, 19 Nov 2012 10:12:49 -0500
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 <[email protected]> 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/