Bookmark and Share

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


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

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


From   Lloyd Dumont <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index