Chapter 7 Regression analysis

Regression is a powerful tool for estimating the relationship between an outcome (or dependent) variable and one or more exposure (or independent) variables. Here we cover how to estimate and present regression models in R.

Note that you will need the dcps ("DCPS testing.RData") data set and the tidyverse and stargazer packages to replicate the output in this chapter. See Section 4.1 for a reminder on how to import the data and Section 2.4 for installing and loading packages.