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]
st: RE: column headings using estout
From
Lance Erickson <[email protected]>
To
"[email protected]" <[email protected]>
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) ///
collabel(none)
Best,
Lance
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of David Sikkink
Sent: Wednesday, June 06, 2012 6:06 AM
To: [email protected]
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.
--David
*
* 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/