Bookmark and Share

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, is already up and running.

[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 <>
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: )

Hope this helps,

Maarten L. Buis
Reichpietschufer 50
10785 Berlin
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index