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
Maarten Buis <[email protected]>
To
[email protected]
Subject
Re: st: Conditional Effects Plot using Dummies
Date
Tue, 8 May 2012 18:12:59 +0200
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/