- # 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, eps, fast)
-
- # 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],sel.lambda[[j]],] = phiLambda2[j,sel.lambda[[j]],]
- dimension = length(unlist(sel.lambda))
+ # 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, eps, fast)