jrfiedler / causal_inference_python_code

Python code for part 2 of the book Causal Inference: What If, by Miguel Hernán and James Robins
1.24k stars 385 forks source link

Cell 13 of IV notebook #5

Closed Chechgm closed 3 years ago

Chechgm commented 3 years ago

Hi,

I am not sure, but I believe that cell 13 of Chapter 16 is not correct. The regression on the outcome (Y) should be done on the predicted value of the treatment (A) and not on the actual value of it. If I am mistaken, can you clarify this to me please?

Best, Sergio

Chechgm commented 3 years ago

I realized that is code 16.2 . Sorry!