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]

Re: st: Conditional Effects Plot using Dummies


From   Lukas Borkowski <LukasBork@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Conditional Effects Plot using Dummies
Date   Wed, 9 May 2012 20:44:54 +0200

Dear Maarten,

thanks for your help and your article on stata tip 106 which is absolutely usefull. 
However, concerning plotting the conditional effect, I am afraid that -marginsplot- is not working 
because I am using Stata11 and have no chance to get Stata12 which seems to be necessary to run this command.

So how can I handle the problem in Stata11?

Regards

#
Lukas Borkowski



Am 08.05.2012 um 18:12 schrieb Maarten Buis:

> On Tue, May 8, 2012 at 6:00 PM, Lukas Borkowski wrote:
>> I work on a dataset with three different subgroups. My model can be simplified as
>> y = a_x1 b_x2 c_x3
>> and d1, d2 and d3 are my dummies that equal 1 if the observation is part of the corresponding subset. I found a statistically significant interaction effect of d1-3 on x3.
>> 
>> Lets call the interaction term z_d?_x3. I would like to plot the differences in this effect graphically. However, I find it difficult to apply the conditional effects plot on dummy variables.
>> 
>> Any ideas how to plot conditional effects using dummies?
> 
> *--------------- begin example ------------------
> sysuse nlsw88, clear
> glm wage i.race##c.grade c.ttl_exp##c.ttl_exp ///
>         i.south, link(log)
> margins, at(ttl_exp=13 south=0) over(race grade)
> marginsplot, x(grade)
> *---------------- end example -------------------
> (For more on examples I sent to the Statalist see:
> http://www.maartenbuis.nl/example_faq )
> 
> Hope this helps,
> Maarten
> 
> --------------------------
> Maarten L. Buis
> Institut fuer Soziologie
> Universitaet Tuebingen
> Wilhelmstrasse 36
> 72074 Tuebingen
> Germany
> 
> 
> http://www.maartenbuis.nl
> --------------------------
> *
> *   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index