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.

# Re: st: Transform logit coef and use in -estout- -esttab-

 From Maarten Buis To statalist@hsphsun2.harvard.edu Subject Re: st: Transform logit coef and use in -estout- -esttab- Date Fri, 28 Sep 2012 10:30:01 +0200

```On Thu, Sep 27, 2012 at 9:52 PM, RV Rikard wrote:
> How would one do the following:
>
> 1.  Compute the Interquartile Range (IQR) for each continuous variable,
> 2.  After estimating a logit model - multiply the IQR value and the
> logit coefficient (b) for each respective continuous variable in the
> logit model,
> 3.  Then exponentiate the product computed in step 2,
> 4.  Replace the logit coefficient reported for a continuous variable in
> -esttab- with the exponentiated value from step 3.

Here is one solution:

*----------------- begin example ------------------
sysuse nlsw88, clear
local varl ""
foreach var of varlist grade ttl_exp tenure wage {
sum `var' , d
gen `var'2 = `var' /(r(p75)-r(p25))
local varl "`varl' `var'2"
}
eststo: logit union `varl'
esttab, eform
*------------------ end example -------------------
(For more on examples I sent to the Statalist see:
http://www.maartenbuis.nl/example_faq )

Hope this helps,
Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/
```