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.
mod.jointly.generate.binary.normal(no.rows, no.bin, no.nor, prop.vec.bin,
mean.vec.nor, var.nor, corr.vec, adjust.corrs = TRUE)Number of rows
Number of binary variables
Number of normal variables
Vector of parameters for binary variables
Vector of means for binary variables
Vector of variances for binary variables
Vector of correlations
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.