Ankit Bhutani has created new Python code to estimate two-sample two-stage least squares (TS2SLS). The code also works in R! Find it on Ankit’s github page. The new code provides more accurate standard error calculations than my Stata code.
Written on 2020-05-26