Take a look at

require(MASS)
?mvrnorm

HTH,
Jorge.-



On Mon, Dec 3, 2012 at 3:57 AM, rahul143 <> wrote:

> 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
>
>
>
> -----
>    TO GET MORE DETAILS CLICK HERE
>
>
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/How-to-simulate-correlated-data-tp4651667.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]


