Skip to content

instrumental variables regression using ivreg (AER) or tsls (sem)

1 message · Achim Zeileis

#
On Thu, 29 Nov 2012, Ranjan Maitra wrote:

            
The 1st stage regression is not quite correct in this example. My 
understanding is that he wants to use distance as an instrument for 
education and all other variables as instruments for themselves. However, 
the rest of the instruments have been erroneously left out of the 1st 
stage in his example.
This should be:

simple.ed.1s<- lm(education ~ urban + gender + ethnicity + unemp + distance,
   data=cd.d)
And then the same estimates could be obtained in ivreg() as:

m <- ivreg(wage ~ urban + gender + ethnicity + unemp + education |
   urban + gender + ethnicity + unemp + distance, data = CollegeDistance)

Or in tsls() as:

m2 <- tsls(wage ~ urban + gender + ethnicity + unemp + education,
   ~ urban + gender + ethnicity + unemp + distance, data = CollegeDistance)

Best,
Z