Description Value Super class Methods Examples
Description of the function
Description of the function
The coefficients of the fused lasso ANCOVA for the different value of lambda
VariSel::VariSel
-> mod_lasso
new()
mod_lasso$new( x, y, univ = TRUE, Sigma_12inv = diag(1, ncol(as.data.frame(y))), sepy = "__", penalty.factor = NULL )
estime()
mod_lasso$estime(lambda = NULL, standardize = FALSE, intercept = TRUE)
lambda
if the user wants to use it owns values of lambdas
sel_cv()
mod_lasso$sel_cv(s = "lambda.min")
sel_stabs()
mod_lasso$sel_stabs(nb.cores = 7, B = 500, PFER = 1)
plot_path()
mod_lasso$plot_path(type = "first", nb = 6)
clone()
The objects of this class are cloneable with this method.
mod_lasso$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 4 5 6 7 8 9 10 | B <- c(1, -1, 1.5, 1.5, rep(0, 6), 2, 0, 2, 0)
group <- c(rep('M1', 10), rep('M2', 10))
regressors <- matrix(rnorm(6*20), ncol = 6)
X <- model.matrix(~group + group:regressors - 1)
y <- X%*%B + rnorm(20)
y <- scale(y)
mod <- fl2(y, regressors, group)
colors <- c(rep("grey",2), rep('green',2),rep('black', 6), rep(c("orange","blue"), 2), 'darkgreen', rep('yellow',3), rep('purple',2))
matplot(mod$lambda ,t(mod$beta),type='l',col=colors)
#' @import R6 Matrix gglasso tidyverse glmnet stabs magrittr viridis stringr FusedLasso
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.