How can I add two more variables with the following conditions?
- Variable "c" that has a 0.7 correlation with variable "a".
- If possible, variable "d" that correlates simultaneously with "a" and "b".
Simulated data
n = 100
d = tibble(a = rnorm(n, 50, 20),
b = rnorm(n, 10, 0.4))
d
Tidyverse solutions are much appreciated!