Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: placing parameter estimates for several bivariate models into a single column of a table


From   "Ben Jann" <ben.jann@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: placing parameter estimates for several bivariate models into a single column of a table
Date   Tue, 31 Jul 2007 22:01:25 +0200

See

http://www.stata.com/statalist/archive/2007-06/msg00636.html

ben

On 7/31/07, Garth Rauscher <garthr@uic.edu> wrote:
> Dear Stata listservers,
>
> Stata appears to have a lot of different methods for combining results
> across models into a single table (estimates table, estimates add, esttab,
> etc.). I am wondering if there is some way to trick one of these into
> placing the parameter estimates from several bivariate models into the same
> column, rather than having a separate column for each model. For example:
>
>
> // The program:
>
> sysuse auto, clear
>
> eststo clear
>         eststo: reg price foreign
>         eststo: reg price weight
>         eststo: reg price turn
>         esttab  est1 est2 est3, p nostar noconstant noparen compress nogap
> wide
>
>
> // Gives me the following table
> ----------------------------------------------------------------------
>                  (1)                 (2)                 (3)
>                price               price               price
> ----------------------------------------------------------------------
> foreign        312.3     0.680
> weight                             2.044     0.000
> turn                                                   207.6     0.007
> ----------------------------------------------------------------------
> N                 74                  74                  74
> ----------------------------------------------------------------------
> p-values in second column
>
>
> // However, what I'd really like is to have the parameter estimates in one
> column and the p-values in one column:
>
> ------------------------------------
>                  (1)
>                price
> ------------------------------------
> foreign       312.3     0.680
> weight        2.044     0.000
> turn          207.6     0.007
> -------------------------------------
> N                 74
> -------------------------------------
> p-values in second column
>
>
> Does anyone have any ideas about how one might go about automating this
> using Stata?
>
> Thanks, Garth
>
>
>
>
> Garth Rauscher
> Assistant Professor
> SPH Epidemiology and Biostatistics
> University of Illinois at Chicago
> 1603 W Taylor St (M/C/ 923)
> Chicago, IL 60612
> (312) 413-4317 phone
> (312) 996-0064 fax
> garthr@uic.edu <mailto:garthr@uic.edu>  email
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index