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 ______________________________________________ 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 and provide commented, minimal, self-contained, reproducible code.