Dear all,
I am searching an answer to my enquiry but haven't found a clear answer yet searching the forum. Could anyone enlighten me if possible, please? Here is my question:
Model:
Y = constant + X1 + X2 +X3 + Z + X1*Z + X2*Z + X3*Z + error
X1, X2, X3 and Z are continuous variables. Y is a dummy.
The direct estimated coefficients from xtlogit is not interpretable, and odds ratio appears difficult to interpret. My question is, if I want to report marginal effects for individual variables (i.e. X1, X2, X3 and Z) and their interaction terms (X1*Z, X2*Z, and X3*Z), how can I do that?
I think probably the marginal effects of the three interaction terms should be generated by:
average marginal effect of the interaction term X1*Z:
. margins, expression(normalden(xb())*(_b[Z] + X1*_b[c.X1#c.Z])) dydx(X1)
average marginal effect of the interaction term X2*Z:
. margins, expression(normalden(xb())*(_b[Z] + X2*_b[c.X2#c.Z])) dydx(X2)
average marginal effect of the interaction term X3*Z:
. margins, expression(normalden(xb())*(_b[Z] + X3*_b[c.X3#c.Z])) dydx(X3)
How to generate marginal effects of the individual variables X1, X2, X3 and Z?
What I want is not:
. margins, dydx(X1)
because this gives the same marginal effects as the marginal effects of X1 using:
. margins, dydx(*)
which will already take into account of the marginal effects from interaction terms. However, what I want is marginal effects of the individual variables X1, X2, X3 and Z.
Thank you very much.
I am searching an answer to my enquiry but haven't found a clear answer yet searching the forum. Could anyone enlighten me if possible, please? Here is my question:
Model:
Y = constant + X1 + X2 +X3 + Z + X1*Z + X2*Z + X3*Z + error
X1, X2, X3 and Z are continuous variables. Y is a dummy.
The direct estimated coefficients from xtlogit is not interpretable, and odds ratio appears difficult to interpret. My question is, if I want to report marginal effects for individual variables (i.e. X1, X2, X3 and Z) and their interaction terms (X1*Z, X2*Z, and X3*Z), how can I do that?
I think probably the marginal effects of the three interaction terms should be generated by:
average marginal effect of the interaction term X1*Z:
. margins, expression(normalden(xb())*(_b[Z] + X1*_b[c.X1#c.Z])) dydx(X1)
average marginal effect of the interaction term X2*Z:
. margins, expression(normalden(xb())*(_b[Z] + X2*_b[c.X2#c.Z])) dydx(X2)
average marginal effect of the interaction term X3*Z:
. margins, expression(normalden(xb())*(_b[Z] + X3*_b[c.X3#c.Z])) dydx(X3)
How to generate marginal effects of the individual variables X1, X2, X3 and Z?
What I want is not:
. margins, dydx(X1)
because this gives the same marginal effects as the marginal effects of X1 using:
. margins, dydx(*)
which will already take into account of the marginal effects from interaction terms. However, what I want is marginal effects of the individual variables X1, X2, X3 and Z.
Thank you very much.
Comment