Description Usage Arguments Details Value
This is a function for generating multiblock data based on the multivariable normal distribusion
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 
n 
a numeric scalar, sample size. 
WX 
a matrix or a list, weights. 
ncomp 
number of components 
Xps 
a numeric vector, numbers of columns for X. The length of vector corresponds to the number of blocks. 
Yps 
a numeric vector, numbers of columns for Y. The length of vector corresponds to the number of blocks. 
rho 
a numeric, correlation 
Ztype 
a character, outcome type ("none", "binary", "prob"). 
cz 
a numeric vector, scale for outcome 
cwx 
a numeric vector, scale for weights of X 
cwy 
a numeric vector, scale for weights of Y 
seed 
a seed number for generating random numbers. 
minpct 
minimum percent of nonzero 
maxpct 
maximum percent of nonzero 
The output is a list of matrics.
X 
Simulated X which has a list form 
Y 
Simulated Y which has a list form 
Z 
Simulated Z which has a vector form 
ncomp 

Xps 

nZeroX 

idxZeroX 

Yps 

nZeroY 

idxZeroY 

WX 

WY 

ZcoefX 

ZcoefY 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.