Created
May 20, 2021 15:36
-
-
Save mark-andrews/bdb9171743d1191b51d39a814dfb938f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set.seed(10101) # Omit or change this if you like | |
N <- 25 | |
x_1 <- rnorm(N) | |
x_2 <- rnorm(N) | |
beta_0 <- 1.25 | |
beta_1 <- 1.75 | |
beta_2 <- 2.25 | |
mu <- beta_0 + beta_1 * x_1 + beta_2 * x_2 | |
y <- mu + rnorm(N, mean=0, sd=1.75) | |
Df <- tibble(x_1, x_2, y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment