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]

st: AW: mfx-Elasticity for a dummy variable

From   "Martin Weiss" <>
To   <>
Subject   st: AW: mfx-Elasticity for a dummy variable
Date   Mon, 7 Jun 2010 09:16:44 +0200


What is the difference of your example to this one - where the marginal
effects do seem to change:

sysuse auto, clear
gen logprice=log(price)
gen logweight=log(weight)
reg logprice length logweight foreign
mfx compute, varlist(logweight) dydx at(mean)
mfx compute, varlist(logweight) eyex at(mean)
mfx compute, varlist(logweight) dyex at(mean)
mfx compute, varlist(logweight) eydx at(mean)


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Nyasha Tirivayi
Gesendet: Montag, 7. Juni 2010 02:50
Betreff: st: mfx-Elasticity for a dummy variable

Dear All

I am trying to estimate elasticity for a dummy explanatory variable in
the following model

ln(y) = a + b ln(x) + T + D Z

I am interested in calculating the elasticity for T a dummy variable
for a "treatment". What is the formula in stata? Is it mfx,dy/dx or

I have done mfx,dyex and the result still remains the coefficient for
T. Could it be that simple? Or there is another way ?

Kindly advise

Nyasha Tirivayi

Maastricht University
*   For searches and help try:

*   For searches and help try:

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