[R] Simulate binary correlated data

Marbles max-ihmels at gmx.de
Tue Mar 5 20:07:34 CET 2013


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 procedures do not allow you to specify
the exact vector for which you want to generate a correlated vector. Is
there anyway to do this?

Maybe I can clarify my question by explaining what my goal is:
I want to generate one Binary Vector (A), generate a correlated binary
Vector (B), then generate a third binary Vector (C) that is correlated to B
so that I can then see the occuring correlations between A and C.

Thank you in advance,
Marbles



--
View this message in context: http://r.789695.n4.nabble.com/Simulate-binary-correlated-data-tp4660366.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list