[R] how to generate multiple random variables that are correlated

Ben Bolker bolker at ufl.edu
Mon Feb 2 17:19:57 CET 2009


eric lee <ericlee100 <at> gmail.com> writes:

[snip]

> 
> Is there an R function that generates random values for my two
> variables given the correlation?  I'd like to do this for up to 5
> variables and I'm running version 2.7.2 on a windows platform.
> Thanks.

  ?MASS::mvrnrom




More information about the R-help mailing list