[R] Generating correlated data from uniform distribution

Menghui Chen menghui at gmail.com
Fri Jul 1 22:48:57 CEST 2005


Dear R users,

I want to generate two random variables (X1, X2) from uniform
distribution (-0.5, 0.5) with a specified correlation coefficient r.
Does anyone know how to do it in R?

Many thanks!

Menghui




More information about the R-help mailing list