BookmarkSubscribeRSS Feed
fuatengin
Calcite | Level 5
Hello,
I am trying to develop a regularized(LASSO) logistic regression model in SAS EM 14.1 but as far as I understand LASSO is available only for linear regression in SAS EM. I consider selecting variables with LASSO then put the resulting non zero variables as inputs into logistic regression. Does this approach work? Or are there any ways to come up with this issue?

Thanks for your help

Engin
3 REPLIES 3
Ksharp
Super User
The LASSO method is in PROC GLMSELECT, Check whether it could be applied in logistic regression. And actually proc logistic have an option OFFSET= which can constraint parameter sum to one due to the fact that offset variable's parameter is always fixed as 1. E.X. if you want var1 has 0.2, var2 has 0.8 then put 0.2*var1+0.8*var2 into OFFSET= . More info check documentation of proc logistic.
fuatengin
Calcite | Level 5
Hello, thanks for your reply but I plan to use SAS Miner Nodes not SAS STAT. Can I select inputs with LARS Node and use the nonzero features in Logistic Regression model?
rayIII
SAS Employee

Hi, check out the HP Regression Node. I think it will do what you want. 

 

Another option ion is to preselect variables using the HP Variable Selection node.

 

Hope this helps. 

 

Ray 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 2296 views
  • 0 likes
  • 3 in conversation