+ # lambda == 0 because we compute the EMV: no penalization here
+ res = EMGLLF(phiInit[col.sel,,],rhoInit,piInit,gamInit,mini,maxi,gamma,0,
+ X[,col.sel],Y,tau)
+
+ # Eval dimension from the result + selected
+ phiLambda2 = res$phi
+ rhoLambda = res$rho
+ piLambda = res$pi
+ phiLambda = array(0, dim = c(p,m,k))
+ for (j in seq_along(col.sel))
+ phiLambda[col.sel[j],,] = phiLambda2[j,,]
+ dimension = length(unlist(sel.lambda))
+
+ # Computation of the loglikelihood