This is a function for generating multiblock data based on the multivariable normal distribusion
simdata(n = 100, rho = 0.8, Yps = c(100, 120, 150), Xps = 500, seed = 1)Simulated X which has a list form
Simulated Y which has a list form
a numeric scalar, sample size.
a numeric scalar, correlation coefficient.
a numeric vector, numbers of columns for Y. The length of vector corresponds to the number of blocks.
a numeric vector, numbers of columns for X. The length of vector corresponds to the number of blocks.
a seed number for generating random numbers.
The output is a list of matrics.