Statalist The Stata Listserver


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

Re: st: getting percent change in estout table


From   "Ben Jann" <[email protected]>
To   [email protected]
Subject   Re: st: getting percent change in estout table
Date   Wed, 20 Jun 2007 09:48:55 +0200

The following should do:

. sysuse auto
(1978 Automobile Data)

. qui logit foreign weight mpg

. listcoef, percent matrix

logit (N=74): Percentage Change in Odds

 Odds of: Foreign vs Domestic

----------------------------------------------------------------------
    foreign |      b         z     P>|z|      %      %StdX      SDofX
-------------+--------------------------------------------------------
     weight |  -0.00391   -3.862   0.000     -0.4    -95.2   777.1936
        mpg |  -0.16859   -1.834   0.067    -15.5    -62.3     5.7855
----------------------------------------------------------------------

. matrix pct = r(b_pct)

. estadd matrix pct = pct

. estout , cells("b se pct") eform style(smcl) drop(_cons)

---------------------------------------------------

                       b           se          pct
---------------------------------------------------
weight           .9961009     .0010077    -.3899079
mpg              .8448578     .0776572    -15.51422
---------------------------------------------------

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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index