I want to generate 2 continuous random variables `Q1`, `Q2` (quantitative
traits) and 2 binary random variables `Z1`, `Z2` (binary traits) with given
pairwise correlations between all possible pairs of them.
Say
(Q1,Q2):0.23
(Q1,Z1):0.55
(Q1,Z2):0.45
(Q2,Z1):0.4
(Q2,Z2):0.5
(Z1,Z2):0.47
Please help me generate such data in R.
--
Sourav Ghosh
2nd Year M.Stat. Student
Indian Statistical Institute, Kolkata
India
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.