Chapter 10 Inference for Regression
In our penultimate chapter, we’ll revisit the regression models we first studied in Chapters 5 and 6. Armed with our knowledge of confidence intervals and hypothesis tests from Chapters 8 and 9, we’ll be able to apply statistical inference to further our understanding of relationships between outcome and explanatory variables.
Let’s load all the packages needed for this chapter (this assumes you’ve already installed them). Recall from our discussion in Section 4.4 that loading the
tidyverse package by running
library(tidyverse) loads the following commonly used data science packages all at once:
ggplot2for data visualization
dplyrfor data wrangling
tidyrfor converting data to “tidy” format
readrfor importing spreadsheet data into R
- As well as the more advanced
If needed, read Section 1.3 for information on how to install and load R packages.