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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: column headings using estout


From   Dorothy Bridges <dbstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: column headings using estout
Date   Wed, 6 Jun 2012 11:37:24 -0700

If the dependent variables and nested models won't change as you
re-run your regressions (that is, if you would be happy to manually
format the table header once and then simply update the values in each
cell), you could use esttab with the "fragment" option, which outputs
only your "IndVar" lines.  However, this won't work if you want the
table to dynamically adjust as you choose different dependent
variables and nested models.

On Wed, Jun 6, 2012 at 5:05 AM, David Sikkink <David.Sikkink.1@nd.edu> wrote:
>
> 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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index