R/variable_selection.R
var_selec.RdVariable selection using group LASSO (gglasso, grpreg that use distinct mathematical approaches), sparse group LASSO, glmnet, stability selection with error control
var_selec(X, Y, group)input a matrix of exposure variables for selection
input a matrix of outcome variables
input the grouping structure. Group inputs should be integers
Returns a list of lists that contain beta coefficient for each exposure. Each list correspond to a outcome variable provided in the input