[R] Generating correlated data from uniform distribution

From: Menghui Chen <menghui_at_gmail.com>
Date: Sat 02 Jul 2005 - 06:48:57 EST


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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 02 06:51:22 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:11 EST