R: Simulates a sample of size n from a set of multivariate...
gen.Bin.NonNor
R Documentation
Simulates a sample of size n from a set of multivariate binary and continuous non-normal variables
Description
This function simulates a sample of size n from a set of multivariate binary and continuous non-normal data with pre-specified marginals and final correlation matrix. Setting n.NN=0 and quantities that are pertinent to the continuous part to NULL results in simulation of a sample of size n from a set of multivariate binary variables. Similarly, setting n.BB=0
and prop.vec=NULL results in simulation of a sample of size n from a set of multivariate continuous non-normal variables.
Variance vector for continuous non-normal variables.
skewness.vec
Skewness vector for continuous non-normal variables.
kurtosis.vec
Kurtosis vector for continuous non-normal variables.
final.corr.mat
Final correlation matrix produced from overall.corr.mat.
coef.mat
Matrix of coefficients produced from fleishman.coef.
Value
A matrix of size n*(n.BB + n.NN) of which the first n.BB
columns are binary variables and the last n.NN columns are continuous variables.
References
Demirtas, H., Hedeker, D., and Mermelstein, R.J. (2012). Simulation of massive public health data by power polynomials.
Statistics in Medicine, 31(27), 3337-3346.