Causal Inference in R

May 4, 2026 ยท View on GitHub

This repository contains the source code for the book Causal Inference in R.

Installation

After cloning this repository, you can install the package dependencies for this book with:

# install.packages("remotes")
remotes::install_deps(dependencies = TRUE)

We use Quarto to render this book.

Formatting and linting

This project uses panache to format and lint the Quarto documents. For the code cells, panache uses air and jarl for formatting and linting, respectively.

panache format chapters/
panache lint chapters/