Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: controlling the table header with estout


From   Ben Jann <[email protected]>
To   [email protected]
Subject   Re: st: controlling the table header with estout
Date   Wed, 15 Apr 2009 00:47:39 +0200

I would place the numbers and labels into the same cell and add a line
break (using the "\line" literal in RTF). Here is an example:

eststo clear
sysuse auto, clear
by foreign: eststo: reg price weight
by foreign: eststo: reg price weight mpg

esttab using test.rtf, replace nonumbers ///
    mlabels("(1a)\line w/o Controls"  ///
            "(1b)\line with Controls" ///
            "(2a)\line w/o Controls"  ///
            "(2b)\line with Controls" ///
    ) ///
    mgroups("blahblahblah1" "blahblahblah2", pattern(1 0 1 0))

Unfortunately, -esttab- does not support spanning columns in RTF mode.
You'd have to hand-edit that in your word processing software.
ben

On Tue, Apr 14, 2009 at 4:09 PM, Pierre Azoulay
<[email protected]> wrote:
> Dear Stata listers,
>
> I have been trying to control the table headers using estout, without
> success so far --- I am new to estout and i have not been able to find
> the answer in the documentation.
>
>        blahblahblah1                       blahblahblah2
> (1a)                    (1b)                    (2a)                    (2b)
> w/o Controls    with Controls   w/o Controls    with Controls
>
>
> I have four models, but they are paired, so rather to have them
> numbered 1 thru 4, I would rather have (1a) (1b) (2a) (2b).
> Second, I would like the model titles to span 2 colums (the set of
> covariates is identical across a and b columns).
> Finally, I would like to insert a line that specifies whether each
> model includes control observations vs. not.
>
> I suspect this is doable uysing some combination of mgroups &
> collabels option, but I have not been able to get it to work yet. If
> you have done something of that sort in the past, I would appreciate
> your advice.
>
> Pierre
>
>
> -------------------------------------------------------------------
> Pierre Azoulay
> Assistant Professor of Strategy
> Massachusetts Institute of Technology
> Sloan School of Management
> 50 Memorial Drive — E52-555
> Cambridge, MA 02142-1947
>
> Tel [Sloan]: (617) 258-9766
> Tel [NBER]: (617) 588-1464
> Fax: (617) 253-2660
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index