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

# 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)
*************

HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Nyasha Tirivayi
Gesendet: Montag, 7. Juni 2010 02:50
An: statalist@hsphsun2.harvard.edu
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
mfx,dyex?

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

Nyasha Tirivayi

Maastricht University
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

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