R exercise

Chapter 3 Exercise 11

Sign in to hand in your solution and get feedback.

set.seed(1) x <- rnorm(100) y <- 2 * x + rnorm(100)