1 generateIOdefault = function(n, p, m, k){
3 meanX = rangeX*(1-matrix(runif(k*p),ncol = p))
5 covX = array(0, dim=c(p,p,k))
6 covY = array(0, dim=c(m,m,k))
15 beta = array(0, dim=c(p,m,k))
18 nonZeroCount = ceiling(m * runif(1))
19 beta[j,1:nonZeroCount,] = matrix(runif(nonZeroCount*k),ncol = k)
22 generate = generateIO(meanX, covX, covY, pi, beta, n)
24 return(list(generate[[1]],generate[[2]]))