Description Usage Arguments References
An internal function not intended for the user. Simulates correlated normal and binary variables based on the algorithm of Demirtas and Doganay (2012). See references for further information.
1 2 | mod.jointly.generate.binary.normal(no.rows, no.bin, no.nor, prop.vec.bin,
mean.vec.nor, var.nor, corr.vec, adjust.corrs = TRUE)
|
no.rows |
Number of rows |
no.bin |
Number of binary variables |
no.nor |
Number of normal variables |
prop.vec.bin |
Vector of parameters for binary variables |
mean.vec.nor |
Vector of means for binary variables |
var.nor |
Vector of variances for binary variables |
corr.vec |
Vector of correlations |
adjust.corrs |
Boolean indicating whether theoretically impossible correlations between a binary and a normal variable should be adjusted to their closest theoretically possible value. |
Demirtas, H., & Doganay, B. (2012). Simultaneous generation of binary and normal data with specified marginal and association structures. Journal of Biopharmaceutical Statistics, 22(2), 223-236.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.