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
How to do a correlation between two variables for each unit of a panel?Hi, I have age-specific suicide rates (1992-2000) for Russia grouped by 5 year age groups from 15-1…
How can I get return list of estat endogenous after a 2sls?Hello,everyone.I want to define results of extat endogenous to be a local.But I find that I can't ge…
Excluding leading zeros when exporting output to WORDHi folks, can you recommend a command that could help me export regression output without including …
Can I run a Pseudo-Poisson Maximum Likelihood in panel data when not using a Gravity Model? What is the STATA command?I want to run the Pseudo-Poisson Maximum Likelihood (PPML) in a panel data framework as my dependent…
color/line pattern for graph?Dear All, I found the following code Code: sysuse auto, clear regress price c.length##c.mpg est s…
Subscribe to:
Post Comments (Atom)
0 Response to ivreg2 with interaction terms
Post a Comment