- model = constructionModelesLassoMLE(
- phiInit, rhoInit,piInit,tauInit,mini,maxi,
- gamma,gridLambda,X,Y,thresh,eps,A1,A2)
- ################################################
- ### Regarder la SUITE
- r1 = runProcedure1()
- Phi2 = Phi
- Rho2 = Rho
- Pi2 = Pi
-
- if (is.null(dim(Phi2)))
- #test was: size(Phi2) == 0
- {
- Phi[, , 1:k] <<- r1$phi
- Rho[, , 1:k] <<- r1$rho
- Pi[1:k,] <<- r1$pi
- } else
- {
- Phi <<-
- array(0., dim = c(p, m, kmax, dim(Phi2)[4] + dim(r1$phi)[4]))
- Phi[, , 1:(dim(Phi2)[3]), 1:(dim(Phi2)[4])] <<- Phi2
- Phi[, , 1:k, dim(Phi2)[4] + 1] <<- r1$phi
- Rho <<-
- array(0., dim = c(m, m, kmax, dim(Rho2)[4] + dim(r1$rho)[4]))
- Rho[, , 1:(dim(Rho2)[3]), 1:(dim(Rho2)[4])] <<- Rho2
- Rho[, , 1:k, dim(Rho2)[4] + 1] <<- r1$rho
- Pi <<- array(0., dim = c(kmax, dim(Pi2)[2] + dim(r1$pi)[2]))
- Pi[1:nrow(Pi2), 1:ncol(Pi2)] <<- Pi2
- Pi[1:k, ncol(Pi2) + 1] <<- r1$pi
+ model[[k]] = constructionModelesLassoMLE(phiInit, rhoInit,piInit,gamInit,mini,maxi,gamma,X,Y,thresh,eps,selected)
+ llh = matrix(ncol = 2)
+ for (l in seq_along(model[[k]])){
+ llh = rbind(llh, model[[k]][[l]]$llh)