From 57a8adeb0e558a54f9481e0256e258525aeb8cd1 Mon Sep 17 00:00:00 2001
From: emilie <emilie@devijver.org>
Date: Fri, 21 Apr 2017 16:23:12 +0200
Subject: [PATCH] ...

---
 pkg/R/constructionModelesLassoMLE.R | 2 +-
 pkg/data/script_data.R              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/R/constructionModelesLassoMLE.R b/pkg/R/constructionModelesLassoMLE.R
index c55035e..0197e1a 100644
--- a/pkg/R/constructionModelesLassoMLE.R
+++ b/pkg/R/constructionModelesLassoMLE.R
@@ -80,7 +80,7 @@ constructionModelesLassoMLE <- function(phiInit, rhoInit, piInit, gamInit, mini,
       norm_fact <- sum(gam)
       sumLogLLH <- sumLogLLH + log(norm_fact) - log((2 * base::pi)^(m/2))
     }
-    llhLambda <- c(sumLogLLH/n, (dimension + m + 1) * k - 1)
+    llhLambda <- c(-sumLogLLH/n, (dimension + m + 1) * k - 1)
     # densite <- vector("double", n)
     # for (r in 1:k)
     # {
diff --git a/pkg/data/script_data.R b/pkg/data/script_data.R
index 9a95115..6b90712 100644
--- a/pkg/data/script_data.R
+++ b/pkg/data/script_data.R
@@ -10,6 +10,6 @@ Beta[1:4,1:4,1] = 3*diag(4)
 Beta[1:4,1:4,2] = -2*diag(4)
 
 #Data = generateXY(100, c(0.5,0.5), rep(0,p), Beta, diag(p), covY)
-#
+
 #Res = valse(Data$X,Data$Y, fast=FALSE, plot=FALSE, verbose = TRUE, kmax=2, compute_grid_lambda = FALSE, 
 #            grid_lambda = seq(0.2,2,length = 50), size_coll_mod = 50)
-- 
2.44.0