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)
# {
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)