When I am running a 2 stage least squares, where do I put the control variables? Should I put the control variables in the first stage? The second stage? Both?
Can someone explain why?
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.
Sign up to join this communityYou put the controls in both the first and second stages.
For intuition, I guess the best explanation I can give would be that you want to get a more precise beta in the first stage, and relevant controls help with precision. In the second stage, those same relevant controls that mediate the selection-into-treatment that motivates most IV would probably also mediate the outcome of that treatment.
To put it differently, if you forget 2SLS and just think about it as the IV estimator $(Z'X)^{-1}Z'Y$, and you want an estimate of the coefficients of your control variables, you're going to have to put them into Z as well as X.
In 2SLS, the variables are classified as endogenous and exogenous (and of course dependent). In the first stage, you regress each endogenous variable against the exogeneous variables and use the fitted value as instrument for the endogenous variable in the second stage along with exogenous variables.