I want to plot the marginal effect of an IV on a DV for different values of my moderator (continious by continious interaction) while controlling for another interaction involving the same IV. My syntax is as follows:
Code:
reg DV control1 control2 control3 c.IV c.Moderator1 c.Moderator2 c.IV#c.Moderator1 c.IV#c.Moderator2 margins, dydx(IV) at(Moderator1=(min(0.2)max)) marginsplot, level(95)
Is my syntax correct? The plot seems fine.
0 Response to Plotting an interaction while accounting for another interaction
Post a Comment