Dear all,
I’m using a panel probit model and need to report marginal effects and a graph that shows how the dependent variable changes is dependent on two continuous variables and their interaction term.
Y = constant + X1 + X2 + X1*X2 + error
However, the marginal effects and the graph are contradictory. On the one hand, marginal effects of two continuous variable X1*X2 is significantly positive, and individually X1, X2 are significantly positive. The command I used was:
. margins, dydx(*)
The marginal effects of the interaction term is calculated by:
.margins, expression(normalden(xb())*(_b[X1] + X2*_b[c.X1#c.L_X2])) dydx(X2)
Graph:
X1 on the x-axis, predicted probability of Y=1 on the y-axis.
. margins, at(X1=(0(0.5)3) X2=(2 4 6))
. marginsplot, noci
The graph shows two strange things:
Can the marginal effect of the interaction term and the graph contract each other? Something must be wrong here!
I’m using a panel probit model and need to report marginal effects and a graph that shows how the dependent variable changes is dependent on two continuous variables and their interaction term.
Y = constant + X1 + X2 + X1*X2 + error
However, the marginal effects and the graph are contradictory. On the one hand, marginal effects of two continuous variable X1*X2 is significantly positive, and individually X1, X2 are significantly positive. The command I used was:
. margins, dydx(*)
The marginal effects of the interaction term is calculated by:
.margins, expression(normalden(xb())*(_b[X1] + X2*_b[c.X1#c.L_X2])) dydx(X2)
Graph:
X1 on the x-axis, predicted probability of Y=1 on the y-axis.
. margins, at(X1=(0(0.5)3) X2=(2 4 6))
. marginsplot, noci
The graph shows two strange things:
- As X1 increases, the predicted probability of Y=1 is decreasing. This is strange because the individual effect of X1 and its interaction with X2 are significantly positive. So I’d expect that as X1 increases, the probability of Y=1 with increase.
- At the same of level of X1, higher X2 has lower predicted probability of Y=1. This is strange because X2 on its own and its interaction with X1 is significantly positive. So what I get should be at the same level of X1, higher X2 will have higher predicted probability of Y=1.
Can the marginal effect of the interaction term and the graph contract each other? Something must be wrong here!
Comment