About This notebook contains R code for part 2 of Causal Inference by Miguel Hernán and Jamie Robins.