Simulate data for the model
sim2(p = 500, n = 100, m = 24, nz = 4, rho = 0.4, B.elem = 0.5)The simulated data with the following components: Beta: matrix of actual beta coefficients p by m Theta: a m by p by K array of actual theta coefficients Y: a N by m matrix of response variables X: a N by p matrix of covariates Z: a N by K matrix of modifiers
column for X which is the main effect
number of observations
number of responses
number of modifiers
values to be used in the covariance matrix when generating X
the value of the non-zero elements in beta?