Statalist The Stata Listserver


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

Re: st: Create a table with signs of estimated coefficients


From   "Ben Jann" <ben.jann@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Create a table with signs of estimated coefficients
Date   Fri, 16 Mar 2007 21:22:19 +0100

Nikolaos wrote:
I want to create a table with the sign of estimated coefficients and if
possible have a double sign if the coefficient is significant.
The newest version of -estout- can produce such a table (see my other
post a minute ago or so). Here is an example:

. sysuse auto
(1978 Automobile Data)

. qui reg price turn mpg if foreign==0

. esto
(est1 stored)

. qui reg price turn mpg if foreign==1

. esto
(est2 stored)

. estout, cells(_sigsign) starlevels("" 1 * 0.05) style(fixed)

                    est1         est2
                _sigsign     _sigsign
turn                    +            +
mpg                    --            -
_cons                   +            -

The symbols specified in the -starlevels()- option do not really
matter here. They are not used in the table. You might as well type
-starlevels(a 1 b 0.05)- or -starlevels(* 1 ** 0.05)- etc. However,
you may not omit the symbols. That is, -starlevels(1 0.05)- would not
work. Level 1 is necessary to ensure that all coefficients get at
least one sign.

ben
*
*   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