Instrumental Variables

Some math: \(\widehat{\beta} = (X'X)^{-1}X'y\).

code to simulate IV or run 2SLS