Subsetting non-zero regressors post-LASSO

Hi, I’ve run a LASSO regression on my “dataset_1” dataset and that has penalized a number of my regressors to zero. Is there a way to subset that dataset into a new dataset that will only have the regressors that are still non-zero? For example, if “dataset_1” has objects


obj_1, obj_2, obj_3, obj_4, obj_5

and the LASSO penalized


obj_1, obj_2, obj_3

to zero, is there a way to subset “dataset_1” to only include


obj_4, obj_5

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.