Hello,
I am trying to understand how to make a 2SLS with ivreg2 when there are interaction terms. In particular, I am now estimating the following:
*****************
* 2SLS regression
*****************
***Fist Stage
reg pres lond eng eur con age realgdpgr inflation lagdebt unemp emu interest sov, robust
predict pres_hat
reg fed lond eng eur con age realgdpgr inflation lagdebt unemp emu interest sov, robust
predict fed_hat
reg corp lond eng eurfrac con age realgdpgr inflation lagdebt unemp emu interest sov, robust
predict corp_hat
reg prop lond eng eurfrac con age realgdpgr inflation lagdebt unemp emu interest sov, robust
predict prop_hat
***Second Stage
reg deficit realgdpgr inflation unemp emu interest sov lagdebt pres_hat corp_hat prop_hat fed_hat, robust
reg deficit realgdpgr inflation unemp emu interest sov lagdebt c.pres_hat##c.corp_hat c.prop_hat##c.corp_hat c.fed_hat##c.corp_hat, robust
Where the variable of interet is deficit, the controls are realgdpgr inflation unemp emu interest sov lagdebt, while the intruments are lond eng eur con age and the intrumented pres, prop, corp and fed.
Now, if I use the above method everything seems to work fine. However, I would now like to use ivreg2:
ivreg2 deficit realgdpgr inflation unemp emu interest sov lagdebt (c.pres##c.corp c.prop##c.corp c.fed##c.corp= lond eng eur con age), robust
However, Stata says that there are no enough instruments. Could you help me understand where the mistake is and how to fix it?
Thank you!
Related Posts with ivreg2 with interaction terms
I need to explain these commands in panel regressionPlease I am new in STATA I find these commands in a paper please can you explain for me before we r…
StanStandard error for wald test …
Auto Correlation with xtabondHello, I have run an xtabond regression and have proceeded to test for auto correlation using estat …
stptime - SMR, "using data not sorted" errorHello, I have individual-level survival data for a cohort of people with my exposure variable of in…
Suppress legend on histogramHello all, I would like to create a histogram of a 4-level categorical variable (hh_comp) that descr…
Subscribe to:
Post Comments (Atom)
0 Response to ivreg2 with interaction terms
Post a Comment