Wednesday, 11 September 2013

Create 3 vectors with 0 and 1 that have pre-specified correlation

Create 3 vectors with 0 and 1 that have pre-specified correlation

I would like to create three vectors a,b,c that are each correlated to
each other with .6.
How can I do this using mvnorm?
Say rmvnorm(n=100, mean=?, sigma=?, method="chol")
What exactly do I need to specify under mean and sigma? Also what if I
want more than two variables?

No comments:

Post a Comment