The Validation Set Approach 1

Sign in to test your solution.
set.seed(1) train <- sample(392, 196) lm.fit <- lm(mpg ~ horsepower, data = Auto, subset = train) summary(lm.fit) set.seed(2) train2 <- ... lm.fit2 <- ... summary(lm.fit2)