Hi,
I'm running an IV regression with a dummy instrument and a continuous endogenous variable. I'd like to test for non-linearity of my data by including the quadratic term of my endogenous variable. I'm aware of Wooldridge (2000) and Wooldridge (2015) as well as several threads on this forum, and my understanding according to these is that the following three approaches are all valid:
As I wrote above, it's my understanding that all of these methods are valid. If that's the case, then how come I get different results when I use 1 than when I use 2? Am I missing something?
Best,
Rune
I'm running an IV regression with a dummy instrument and a continuous endogenous variable. I'd like to test for non-linearity of my data by including the quadratic term of my endogenous variable. I'm aware of Wooldridge (2000) and Wooldridge (2015) as well as several threads on this forum, and my understanding according to these is that the following three approaches are all valid:
Code:
regress x z other_controls, vce(cluster clustervar) predict xhat, resid gen xhat2 = xhat^2 *1: ivregress 2sls y (x x2 = z xhat2) other_controls, vce(cluster clustervar) *2: ivregress 2sls y (x x2 = xhat xhat2) other_controls, vce(cluster clustervar) *3 (this won't work for me, as my instrument is a dummy, so z2 = z): gen z2 = z^2 ivregress 2sls y (x x2 = z z2) other_controls, vce(cluster clustervar)
Best,
Rune
Comment