1 generateIOdefault = function(n, p, m, k)
3 covX = array(0, dim=c(p,p,k))
4 covY = array(0, dim=c(m,m,k))
13 beta = array(0, dim=c(p,m,k))
16 nonZeroCount = ceiling(m * runif(1))
17 beta[j,1:nonZeroCount,] = matrix(runif(nonZeroCount*k), ncol=k)
20 sample_IO = generateIO(covX, covY, pi, beta, n)
21 return (list(X=sample_IO$X,Y=sample_IO$Y))