You are not logged in. You can browse but not post. Login or Register by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the FAQ.
I have a panel data with which I want to run an IV regression. If I want to include county FE, year FE and cluster by state. How should I do this? i have data on over a 1000 counties over 7 years.
I have used
Xtset county year.
Xtreg variable2 instrument_var i.year, fe cluster(state)
then the reduced form
xtreg variable1 instrument_var i.year, fe cluster(state)
and now I am trying to do an IV regression with
xtivreg variable1 (variable2=instrument_var) i.year, fe
But the results I feel are wrong. What could be wrong? Or is there perhaps an alternative way to do this?
Comment