This is the code for Chapter 11
1. HernĂ¡n MA, Robins JM. Causal Inference. Boca Raton: Chapman Hall/CRC; 2019.