Posts by Julia Noronha • 73 points
1 post
-
7
votes1
answer473
viewsQ: How to generate correlated variables in R?
I managed to create the uniform variables X and W, both with normal distribution, using the formula rnorm in the R. However, I wanted to create variables so that they had a -0.8 correlation value.…