Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: RE: column headings using estout

From   Lance Erickson <>
To   "" <>
Subject   st: RE: column headings using estout
Date   Wed, 6 Jun 2012 16:18:27 +0000

Hi David,

Here's one potential solution...

sysuse auto, clear

eststo m1: reg price foreign
eststo m2: reg price foreign weight length
eststo m3: reg mpg foreign
eststo m4: reg mpg foreign weight length

estout m1 m2 m3 m4, ///
	mgroups(price price mpg mpg, pattern(1 1 1 1)) ///
	mlabel(origin physical origin physical) ///


-----Original Message-----
From: [] On Behalf Of David Sikkink
Sent: Wednesday, June 06, 2012 6:06 AM
Subject: st: column headings using estout

I am running a series of nested regression models and storing the estimates using eststo. 

I would like to have a heading and subheading for each column of regression coefficients in the output from estout. I want the top heading to be the dependent variable name, and the subheading to indicate the particular nested model represented in the column (e.g., "Demographics", "Add Political Party" etc.). 

Multiple dependent variables will be run and included, but the subheadings will repeat for the nested regressions of each dependent variable. 

The result should look like this:

                      DepVar1                        DepVar1                         DepVar2                       DepVar2            
                      Demographics              Add Pol Party             Demographics           Add Pol Party
IndVar1              1.2                                   1.1                               .9                                     .8
IndVar2              3.2                                   2.8                              2.5                                  2.2
IndVar3                                                       .6                                                                         .3
IndVar4                                                      4.2                                                                       3.8

Thanks for any direction you can offer.


*   For searches and help try:

*   For searches and help try:

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