Stata's built in Lasso for variable selection (for example dsregress) treats all variables separately and thus may keep some categories of a factor variable but remove others - which is nonsensical.
There might also be groups of variables that only make sense if present together in the model.
A group-lasso (for example gglasso in R https://cran.r-project.org/web/packa...sso/index.html) allows users to specify groups of variables, such that a model either includes both or neither.
Is there anyway to do this in Stata, and if not, are there any plans to implement this in the near future?
There might also be groups of variables that only make sense if present together in the model.
A group-lasso (for example gglasso in R https://cran.r-project.org/web/packa...sso/index.html) allows users to specify groups of variables, such that a model either includes both or neither.
Is there anyway to do this in Stata, and if not, are there any plans to implement this in the near future?

Comment