I've run into a bit of a problem with regard to the use of an interaction term in a panel instrumental variable regression. In particular, the following is my specification:
pit = a + b1wit + b2wit2+...
and I would like to obtain the marginal effect of wit on pit;that is,
(dpit/dwit) = b1 + b2wit
However, wit is endogenous, so I must instrument it with xit. (the above model is a simplification, of course; I have to account for fixed effects along with my other control variables). The following is the code I have employed for it:
Code:
xtivreg2 ln_PovPercent (StateMinWage_real_effln c.StateMinWage_real_effln#c.StateMinWage_real_effln = ln_StateMinWage_real c.ln_StateMinWage_real#c.ln_StateMinWage_real c.ln_MedWage_real#c.ln_StateMinWage_real) ln_EmplRate ln_UnemplRate ln_LFParticipRate i.Year if Code != 0, fe vce(cluster Code) estpost margins, dydx(StateMinWage_real_effln)
I look forward to reading your replies.
Salman
0 Response to Interactions between continuous variables in panel instrumental variable regression - required for marginal effects
Post a Comment