Citation: Hernán MA, Robins JM (2020). Causal Inference: What If. Boca Raton: Chapman & Hall/CRC

Jamie Robins and I have written a book on methods for causal inference.

We expect that the book will be helpful to anyone interested in causal inference, including epidemiologists, statisticians, psychologists, economists, sociologists, political scientists, computer scientists… The book is divided in three parts of increasing difficulty: (1) causal inference without models, (2) causal inference with models, and (3) causal inference from complex longitudinal data.

Here you can download the book and its associated materials (code and data) for free.

A print version (for purchase) will eventually become available but, for now, the book is only available online. At this stage, we may revise and correct the text without documenting the changes. Please make sure that you use the latest version, which is always available from this page.

The code used in the What If book

The data used in the What If book