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: plot interaction with natural log transformed variable in untransformed units with marginsplot


From   "Steve Rothenberg" <drlead@prodigy.net.mx>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: plot interaction with natural log transformed variable in untransformed units with marginsplot
Date   Wed, 6 Jun 2012 15:03:16 -0500

I've estimated a regression model containing a natural log transformed
continuous variable interacted with a dummy variable.  After using -margins-
and -marginsplot- I can plot the interaction of the log transformed variable
for the categories of the dummy variable.  However, I can't figure out how
to use the -margins-, -marginsplot- combination to show me the continuous
variable in untransformed units on the x-axis, an easier way to see what's
going on in the interaction than plotting on the natural log scale.  The
manual descriptions for the commands caution that only variables used in the
preceding estimation command can be used with the margins suite.

Any suggestions for using the margins commands or other method that would
also produce interaction plots with two natural log transformed continuous
variables would be helpful.

Steve Rothenberg
National Institute of Public Health
Cuernavaca, Morelos, Mexico
Stata 12.1

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