Exercise 4.1

This question involves the use of multiple linear regression on the Auto data set. So load the data set from the ISLR package first.

If the following code chunk returns an error, you most likely have to install the ISLR package first. Use install.packages("ISLR") if this is the case.

data("Auto", package = "ISLR")
  1. Produce a scatterplot matrix which includes all of the variables in the data set.
pairs(Auto)