See ?mvrnorm
-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Lisa Wang
Sent: Thursday, December 15, 2005 10:34 AM
To: R-Help
Subject: [R] How to simulate correlated data
Hello there,
I would like to simulate X --Normal (20, 5)
and the correlation between X and Y is 0.6. How do I do it in R?
Thank you very much
Lisa Wang Msc.
Y-- Normal (40, 10)
Princess Margaret Hospital
Toronto, Ca
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
This archive was generated by hypermail 2.1.8 : Fri 16 Dec 2005 - 04:29:51 EST