I am trying to use margins and marginsplot to plot the effect of X1 in a regression as follows:

Y=a+b1*X1+b2*X2+b3*X1*X2+e

This is straightforward, as outlined by Maarten Buis here: https://www.statalist.org/forums/for...=1659532544301. However, this gives me graphs that look like this:


Array



However, both X1 and X2 are continuous in my case and so I would like to produce a graph that replaced the individual confidence interval markers with dotted lines (or similar) as in the Brambor example in the linked post:

Array Array


However, despite my best efforts I haven't worked out how to achieve this. I would be grateful for any pointers.

Cheers,

Stu