Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: esttab allow description of variables to span multiple columns


From   Santosh Anagol <santosh.anagol@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: esttab allow description of variables to span multiple columns
Date   Tue, 4 Jun 2013 08:58:18 -0400

Dear Statalisters,

I would like to include some long descriptions of sets of variables
using the refcat option for esttab. The problem is the first column of
the table becomes very wide when I do this. Is there a way that esttab
can automatically put the long descriptions across multiple columns
(above the coefficients of the models) so that the whole table does
not end up so wide?

Here's an example where I'd like the descriptions "These are the size
variables" and "These are the non-size variables to span multiple
columns.

sysuse auto
eststo b1: quietly regress price weight length
eststo b2: quietly regress price weight length mpg
eststo b3: quietly regress price weight length mpg foreign

esttab b1 b2 b3, keep(weight length mpg foreign) mtitles ///
refcat(weight "These are the size variables" mpg "These are the
non-size variables", nolabel) varwidth(40)

Any help appreciated, thanks.

Santosh
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index