mod.jointly.generate.binary.normal: Return closest value

Description Usage Arguments References

Description

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.

Usage

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)

Arguments

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.

References

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.


SimTimeVar documentation built on May 2, 2019, 8:31 a.m.