Statalist


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

Re: st: how to get marginal effect when dependent variable has ln function?


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: how to get marginal effect when dependent variable has ln function?
Date   Mon, 22 Jun 2009 09:44:19 +0000 (GMT)

--- On Sun, 21/6/09, gjhxmu@sina.com 
> I typed below in the stata:
> 
> g lny=ln(y)
> reg lny x1 x2
> 
> However, how can I get the marginal effect of x1 on y? 

Yet another way to get intepretable results from such a model
(though I prefer the -glm- or -poisson- route already 
mentioned by Austin Nichols) is to use the -eform- option in 
-regress- and interpret the coefficients as ratio changes in
the geometric mean of the dependent variable. See:

Roger Newson (2003) Stata tip 1: The eform() option of 
regress. The Stata Journal, 3(4): 445.
http://www.stata-journal.com/article.html?article=st0054

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://home.fsw.vu.nl/m.buis/
-----------------------------------------





      

*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index