Re: [R] creating multivariate normal random variables

2013-05-09 Thread David Carlson
p-boun...@r-project.org] On Behalf Of asdf1234 Sent: Thursday, May 9, 2013 9:48 AM To: r-help@r-project.org Subject: [R] creating multivariate normal random variables Dear R experts, I am trying to create a dataset, with one dependent binomial and one independen (normal) variable. I have the condit

[R] creating multivariate normal random variables

2013-05-09 Thread asdf1234
Dear R experts, I am trying to create a dataset, with one dependent binomial and one independen (normal) variable. I have the condition that my x should be created in the following way: if y=0 my x should have mean=0.2 and variance=1 if y=1 my x should have mean=0.7 and variance=1 Furthermore, my