Description Usage Arguments Value References See Also Examples
This function implements pseudo-random number generation for a multivariate Bernoulli distribution (correlated binary data).
1 | draw.correlated.binary(no.row,d,prop.vec,corr.mat)
|
no.row |
Number of rows to generate. |
d |
Number of variables to generate. |
prop.vec |
Vector of means. |
corr.mat |
Correlation matrix. |
A no.row \times d matrix of generated data.
Park, C. G., Park, T., & Shin D. W. (1996). A simple method for generating correlated binary variates. The American Statistician, 50(4), 306-310.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.