print(tableauRecap)
modSel <- capushe::capushe(tableauRecap, n)
indModSel <- if (selecMod == "DDSE")
- as.numeric(modSel@DDSE@model) else if (selecMod == "Djump")
- as.numeric(modSel@Djump@model) else if (selecMod == "BIC")
- modSel@BIC_capushe$model else if (selecMod == "AIC")
+ {
+ as.numeric(modSel@DDSE@model)
+ } else if (selecMod == "Djump")
+ {
+ as.numeric(modSel@Djump@model)
+ } else if (selecMod == "BIC")
+ {
+ modSel@BIC_capushe$model
+ } else if (selecMod == "AIC")
+ {
modSel@AIC_capushe$model
+ }
+
mod <- as.character(tableauRecap[indModSel, 1])
listMod <- as.integer(unlist(strsplit(mod, "[.]")))
#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)
+#Res = valse(Data$X,Data$Y, fast=FALSE, plot=FALSE, verbose = TRUE, kmax=2, size_coll_mod = 100,
+# selecMod = "BIC")