Bookmark and Share

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

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

Re: st: Conditional Effects Plot using Dummies

From   Maarten Buis <>
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: )

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
*   For searches and help try:

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