Re: [R] Simulate binary correlated data

2013-03-05 Thread Marbles
Btw: I have done this for non-binary variables already. If anyone is interested, it looks like this. I am pretty new to R, so excuse the potentially unelegant code. # Implement library library(ecodist) # Prepare ACOutcome vector ACOutcomes = c() # Set desired variablelength & Number of simulati

Re: [R] Simulate binary correlated data

2013-03-05 Thread Marbles
Thank you for your response! I know that it is not enough to uniquely specify the correlation. That is why i would like to simulate it so that i can see how the resulting correlations between A and C are distributed in dependence of the correlations between A&B and B&C. -- View this message in

Re: [R] Simulate binary correlated data

2013-03-05 Thread R. Michael Weylandt
On Tue, Mar 5, 2013 at 7:07 PM, Marbles wrote: > Dear R experts, > > I am trying to simulate correlated binary data and have stumbled upon the > following problem: > > With the help of "binarySimCLF" or "mvpBinaryEp" I have been able to > simulate correlating binary vectors given certain mean valu

[R] Simulate binary correlated data

2013-03-05 Thread Marbles
Dear R experts, I am trying to simulate correlated binary data and have stumbled upon the following problem: With the help of "binarySimCLF" or "mvpBinaryEp" I have been able to simulate correlating binary vectors given certain mean values and a desired correlation. My problem is that these proce