Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

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


From   Maarten Buis <[email protected]>
To   [email protected]
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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index