On Tue, Mar 5, 2013 at 7:07 PM, Marbles <max-ihm...@gmx.de> 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 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.
IIRC, knowing the correlation between A & B and the correlation between B & C is not enough to uniquely specify the correlation between A & C (or perhaps even to bound it). Therefore i think your question is ill-defined. Though I might be wrong in the specific case of binary variates... Cheers, MW > > 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. > > ______________________________________________ > R-help@r-project.org 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. ______________________________________________ R-help@r-project.org 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.