6 meanX = matrix(nrow=p,ncol=k)
10 covX = array(dim=c(p,p,k))
11 covX[,,1] = 0.1*diag(p)
12 covX[,,2] = 0.5*diag(p)
14 covY = array(dim = c(q,q,k))
15 covY[,,1] = 0.1*diag(q)
16 covY[,,2] = 0.2*diag(q)
18 beta = array(dim = c(p,q,2))
19 beta[,,2] = matrix(c(rep(2,(D)),rep(0, p*q-D)))
20 beta[,,1] = matrix(c(rep(1,D),rep(0, p*q-D)))
26 data = generateXY(meanX,covX,covY, pi, beta, n)
31 res_valse = valse(X,Y)