Hello everyone,
I'm estimating a model using
in Stata 14 and have calculated margins using
to get two predictive margins at the fixed values 0 and 1 each for the two regressors x1 and x2. Now I would like to use
to get a graph running from 0 to 1 on the x-axis and depicting the predictive margins for the two regressors on the y axis. So, for example, when I am at 0 along the x-axis, I would like to have the predictive margin for x1=0 and the margin for x2=0 on the y-axis. When I simply type
, the result is not useful as it does not show all four margins and seems to have something mixed up along the x-axis, see below.

Help would be very much appreciated!
All the best,
PA
I'm estimating a model using
Code:
xtlogit y x1 x2, re
Code:
margins, at (x1=(0(1)1)) at(x2=(0(1)1)) predict(pu0)
Code:
marginsplot
Code:
marginsplot
Help would be very much appreciated!
All the best,
PA
Comment