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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: margins with a transformed (natural log) independent variable


From   Lloyd Dumont <lloyddumont@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: margins with a transformed (natural log) independent variable
Date   Thu, 20 Oct 2011 11:53:54 -0700 (PDT)

Hello.  I am trying to obtain predicted probabilities using �rgins- after xtlogit.  The problem is that the variable I am interested in analyzing is a log transform.  So, the �rginsplot- yields a straight line.
 
- xtlogit DEPVAR INDEPVAR1 INDEPVAR2 INDEPVAR3_ln
- margins, at(INDEPVAR3_ln=(0(.5)4.5)) predict(pu0)
- marginsplot
 
I know how to deal with this issue if the transformed variable is a quadratic.  You just have to make sure you use the syntax for factor variables in the estimation command.  But, how do I let Stata know it’s a log transform?
 
Thank you for your help!  Lloyd Dumont

*
*   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   |   Site index