Hi,
I don't have much experience with the margins command yet and face a problem interpreting the marginal effect of an interaction term.
Suppose a OLS regression model with a continuous variable A and a categorical variable B as well as an interaction term c.A##i.B.
The coefficients of both variables A and B do not differ significantly from 0 whereas the interaction coefficient takes on the value .28 and is significant at the 5% level. I am interested in the effect of A on Y.
As to my understanding, A has only a significant influence on Y if B takes on the value 1. In this case (B=1), an increase of A by 1 results in an increase of Y by 0.28.
The following command:
results in:
I am interested in the change of Y by a change in A, given that B = 1.
My question is why the coefficient of the interaction term in the regression analysis differs from the marginal effect. Which of the two is the actual effect I am looking for?
Any help is much appreciated!
I don't have much experience with the margins command yet and face a problem interpreting the marginal effect of an interaction term.
Suppose a OLS regression model with a continuous variable A and a categorical variable B as well as an interaction term c.A##i.B.
The coefficients of both variables A and B do not differ significantly from 0 whereas the interaction coefficient takes on the value .28 and is significant at the 5% level. I am interested in the effect of A on Y.
As to my understanding, A has only a significant influence on Y if B takes on the value 1. In this case (B=1), an increase of A by 1 results in an increase of Y by 0.28.
The following command:
Code:
margins, dydx(A) at( A = .9602147 B= 1)
Code:
Average marginal effects Number of obs = 2,404
Model VCE: Robust
Expression: Linear prediction, predict()
dy/dx wrt: A
At: B = 1
A = .9602147
------------------------------------------------------------------------------
| Delta-method
| dy/dx std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
A | .179922 .0720446 2.50 0.013 .0385429 .3213011
------------------------------------------------------------------------------
My question is why the coefficient of the interaction term in the regression analysis differs from the marginal effect. Which of the two is the actual effect I am looking for?
Any help is much appreciated!

Comment