1
$\begingroup$

I was taught in my first econometrics course that if I have a model

$y_i = \beta_0 + \beta_1 X_i + \epsilon_i$,

but it had an endogeneity problem, i.e. $E(\epsilon_i | X_i) \neq 0$, I could solve it by creating some instrument variable $Z_i$ with the following properties:

  • $Cov(Z_i, \epsilon_i) = 0$
  • $Cov(Z_i, X_i) \neq 0$.

The properties make sense to me: I want a new variable that is still related to the independent variable we are studying $X_i$, but kind of independent with the error term to solve the problem we had in the first place.

But I never knew how to actually come up with or construct an explicit instrument to be able to actually use instrumental variables in a practical situation.

I would appreciate some sort of explanation or example.

$\endgroup$
3
  • $\begingroup$ what exactly you mean by construct here? Like you want to know the math behind it? Or just some example someone running 2SLS in R by manually doing first stage? Instrument is a variable by the way, you do not really construct it, you typically find some variable that can serve as an instrument $\endgroup$
    – 1muflon1
    Feb 6, 2023 at 16:06
  • $\begingroup$ @1muflon1 I would like to see it implemented on R as you suggest it. The theory behind it seemed like just confusing to me. $\endgroup$ Feb 6, 2023 at 20:56
  • $\begingroup$ please dont swear, this site is moderated you are not supposed to use pejoratives and it wastes our mod time to edit/delete such comments $\endgroup$
    – 1muflon1
    Feb 6, 2023 at 21:56

1 Answer 1

2
$\begingroup$

In real life you do not simply construct instrument, that is a language you might see in some econometrics textbooks when they discus the model theoretically, e.g. "to get rid of simultaneity we construct instrument that has this or that property", but in real life you don't actually construct the series.

In real life you record data for some variable you believe will be good instrument. A good instrument should satisfy the properties you mention. There are no hard rules here, you need to think about it hard. Good examples are things like using draft lottery when estimating returns to education such as done by Angrist and Kruger. Draft clearly affects education, and since people were drafted by lottery its guaranteed its exogenous and $Cov(Z_i,ϵ_i)=0$.

A one way how you implement this, in lets say R is as follows:

You can use package ivreg:

install.packages("ivreg")
library("ivreg")

Get yourself data, for the purpose of demonstration I will use:

data("SchoolingReturns", package = "ivreg")

Next since we already have all the data we can run a model. We can do simple Mincer equation

my_iv <- ivreg(log(wage) ~ education + poly(experience, 2h) |
  nearcollege + poly(age, 2),
  data = SchoolingReturns)

Where the first set of variables are the variables in second stage and after | there is a set of instruments. We use proximity to college as an instrument for education (since being closer to university makes you more likely to attend one, but arguably your location is exogenous), and age for experience.

As you see you do not create the instrument in some computational way inside your PC. You go out and find data on variable that you can defend being a good instrument. You can use Hausman test or F-test to see whether the regression is consistent or whether first stage is strong to support the use of instrument. You can also run auxiliary first stage to examine whether the instrument is significant when regressed on endogenous regressor. For that you would just run regular regression where dependent variable is the a dependent variable and instrument will be independent variable.

$\endgroup$
2
  • $\begingroup$ Thanks for the answer! It is much more clear to me how it actually works in practice. What do you mean by draft? I just searched Angrist and Kruger, and from my understanding, they use the quarter of the year people are born in as an instrument, due to compulsory schooling regulations by age. $\endgroup$ Feb 7, 2023 at 2:06
  • $\begingroup$ @NicolasTorres I know the paper you are referring to but they also have different paper where they use US draft lottery, here is the paper if interested nber.org/papers/w4067. $\endgroup$
    – 1muflon1
    Feb 7, 2023 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.