This is a function for generating multiblock data based on the multivariable normal distribusion
strsimdata(
n = 100,
WX = NULL,
ncomp = 5,
Xps = 10,
Yps = FALSE,
rho = 0.8,
Ztype = c("none", "binary", "prob")[1],
cz = c(1, 1),
cwx = c(0.1, 0.1),
cwy = c(0.1, 0.1),
seed = 1,
minpct = 0.25,
maxpct = 0.75
)Simulated X which has a list form
Simulated Y which has a list form
Simulated Z which has a vector form
a numeric scalar, sample size.
a matrix or a list, weights.
number of components
a numeric vector, numbers of columns for X. The length of vector corresponds to the number of blocks.
a numeric vector, numbers of columns for Y. The length of vector corresponds to the number of blocks.
a numeric, correlation
a character, outcome type ("none", "binary", "prob").
a numeric vector, scale for outcome
a numeric vector, scale for weights of X
a numeric vector, scale for weights of Y
a seed number for generating random numbers.
minimum percent of nonzero
maximum percent of nonzero
The output is a list of matrics.