Bookmark and Share

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   Francesco <[email protected]>
To   [email protected]
Subject   Re: st: Grouping regressions with Esttab
Date   Tue, 20 Nov 2012 09:51:13 +0100

Thats great, Many thanks

On 19 November 2012 16:47, Ryan Kessler <[email protected]> wrote:
>
> Oops. I didn't notice that you're using LaTeX:
>
> 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 using test.tex, booktabs nomtitles mgroups("Domestic"
> "Foreign", pattern(1 0 1 0) ///
> prefix(\multicolumn{@span}{c}{) suffix(}) span
> erepeat(\cmidrule(lr){@span}))
>
> On Mon, Nov 19, 2012 at 10:12 AM, Ryan Kessler
> <[email protected]> wrote:
> > 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/
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index