
Last chance! 50% off unlimited learning
Sale ends in
Stability selection for MLGL
stability.MLGL(
X,
y,
B = 50,
fraction = 0.5,
hc = NULL,
lambda = NULL,
weightLevel = NULL,
weightSizeGroup = NULL,
loss = c("ls", "logit"),
intercept = TRUE,
verbose = FALSE,
...
)
a stability.MLGL object containing:
sequence of lambda
.
Number of bootstrap samples.
A matrix of size length(lambda)*number of groups containing the probability of selection of each group
vector containing the index of covariates
vector containing the index of associated groups of covariates
computation time
matrix of size n*p
vector of size n. If loss = "logit", elements of y must be in -1,1
number of bootstrap sample
Fraction of data used at each of the B
sub-samples
output of hclust
function. If not provided, hclust
is run with ward.D2 method
lambda values for group lasso. If not provided, the function generates its own values of lambda
a vector of size p for each level of the hierarchy. A zero indicates that the level will be ignored. If not provided, use 1/(height between 2 successive levels)
a vector
a character string specifying the loss function to use, valid options are: "ls" least squares loss (regression) and "logit" logistic loss (classification)
should an intercept be included in the model ?
print some informations
Others parameters for gglasso
function
Quentin Grimonprez
Hierarchical clustering is performed with all the variables. Then, the partitions from the different levels of the hierarchy are used in the different runs of MLGL for estimating the probability of selection of each group.
Meinshausen and Buhlmann (2010). Stability selection. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 72.4, p. 417-473.
cv.MLGL, MLGL
# \donttest{
set.seed(42)
# Simulate gaussian data with block-diagonal variance matrix containing 12 blocks of size 5
X <- simuBlockGaussian(50, 12, 5, 0.7)
# Generate a response variable
y <- X[, c(2, 7, 12)] %*% c(2, 2, -2) + rnorm(50, 0, 0.5)
# Apply stability.MLGL method
res <- stability.MLGL(X, y)
# }
Run the code above in your browser using DataLab