[R] How to simulate correlated data

From: Lisa Wang <lisawang_at_uhnres.utoronto.ca>
Date: Fri 16 Dec 2005 - 02:33:47 EST


Hello there,

I would like to simulate X --Normal (20, 5)

                         Y-- Normal (40, 10)

and the correlation between X and Y is 0.6. How do I do it in R?

Thank you very much

Lisa Wang Msc.
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 Received on Fri Dec 16 02:46:06 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:39 EST