What you need

This book requires two free programs, which should be installed in the following order.

  1. R — the statistical programming language, available from cran.r-project.org.
  2. RStudio Desktop — an integrated development environment that provides a more convenient interface for working with R, available from posit.co/download/rstudio-desktop.

Several chapters use additional R packages. These need to be installed only once, by running the following command in the RStudio console:

install.packages(c("tidyverse", "BSDA", "wooldridge", "AER",
                   "stargazer", "sandwich", "lmtest"))

No other software is required, and everything used in this book is freely available.