R exercise

The Validation Set Approach 4

Sign in to hand in your solution and get feedback.

set.seed(1) train <- ... lm.fit1 <- ... lm.fit2 <- ... lm.fit3 <- ... mse1 <- ... mse2 <- ... mse3 <- ... MC1 <- ...