powered by
Simulates many versions of mixed data, and reports averaged proportion, mean, variance and correlation estimates across replications.
simulation(seed = NULL, nsim, no.rows, no.bin, no.nor, mean.vec.nor = NULL, var.nor = NULL, prop.vec.bin = NULL, corr.vec = NULL, corr.mat = NULL, continue.with.warning = TRUE)
A seed value for the random number generator. Seed value will be randomly generated unless specified.
Number of simulation runs.
Number of rows.
Number of binary variables
Number of normal variables
Probability vector for binary variables
Vector of means for normal variables
Vector of variances for normal variables
Vector of elements below the diagonal of correlation matrix ordered columnwise
Specified correlation matrix
TRUE to proceed with the nearest positive definite \(\Sigma^*\). FALSE to terminate program execution if \(\Sigma^*\) is not positive definite
compute.sigma.star, jointly.generate.binary.normal
compute.sigma.star
jointly.generate.binary.normal
simulation(nsim=10, no.rows=100, no.bin=2, no.nor=2, mean.vec.nor=c(3,1), var.nor=c(4,2), prop.vec.bin=c(0.4,0.7), corr.vec=c(0.16,0.04,0.38,0.14,0.47,0.68), corr.mat=NULL)
Run the code above in your browser using DataLab