I want to plot a model using marginsplot for two hypothetical predictors. I have a simple model:
I want to get two values for x1: the first should be 1 SD more than average and the second should be 1 SD less than average, and I want to use these two to plot the expected outcome along i.x2. How can I do that by using the margins command?
Btw, the problem is x1 is continuous, so using margins and marginsplot produces problems because of its not being a factor variable.
Code:
xtreg Y x1 i.x2 c.x1#i.x2 x3, fe
Btw, the problem is x1 is continuous, so using margins and marginsplot produces problems because of its not being a factor variable.
Comment