[R] Generating artificial datasets with a specific correlationcoefficient.

Ken Knoblauch knoblauch at lyon.inserm.fr
Tue Jun 12 22:54:05 CEST 2007


see mvrnorm in MASS and especially the empirical argument

James Milks <james.milks <at> wright.edu> writes:


> I need to create artificial datasets with specific correlation  
> coefficients (i.e. a dataset that returns r = 0.30, etc.) as examples  
> for a lab I am teaching this summer.  Is there a way to do that in R?
> 
> Thanks.
> 
> Jim Milks



More information about the R-help mailing list