I am using a Lasso model for feature selection. At present I use the function
lassoFit = fit(LassoPath, X_train, Y_train, λ = lamGrid, maxncoef=maxncoef)
I have the following question.
(1) Some estimated coefficients are negative for each lamGrid value, which don’t give a reasonable biological meaning to my problem. I need all coefficients to be non-negative. Is there a way to restrict the coefficients to be non-negative?