BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Heidilynne
Calcite | Level 5

Hi - I am trying to run the proc hpgenselect to do LASSO regression. However, I continue to receive this error message: 

 

ERROR: The HPGENSELECT procedure supports the FORWARD, BACKWARD, and STEPWISE variable selection
techniques. The chosen technique is not available.

 

I am using SAS 9.4 TS Level 1MI on X64_8PRO platform. 

 

Code I am using: 

proc hpgenselect data=died30;
class group (ref = "2") black (ref = "0") female (ref = "0") died30 (ref = "0") / param=ref;
model died30(event="1") = age black female iqcode apache cci lawton group / dist=binary;
selection method =lasso;
run;

 

What am I doing wrong? Thanks! 

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hi @Heidilynne and welcome to the SAS Support Communities!

 

According to the documentation, the LASSO selection method in PROC HPGENSELECT was introduced in SAS/STAT version 14.1 (SAS 9.4M3). Your SAS 9.4M1 has probably SAS/STAT version 13.1. You can check this with

proc product_status;
run;

So, an upgrade to the latest release will (most likely) resolve the issue and add a lot of valuable enhancements to other language elements as well.

View solution in original post

1 REPLY 1
FreelanceReinh
Jade | Level 19

Hi @Heidilynne and welcome to the SAS Support Communities!

 

According to the documentation, the LASSO selection method in PROC HPGENSELECT was introduced in SAS/STAT version 14.1 (SAS 9.4M3). Your SAS 9.4M1 has probably SAS/STAT version 13.1. You can check this with

proc product_status;
run;

So, an upgrade to the latest release will (most likely) resolve the issue and add a lot of valuable enhancements to other language elements as well.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 513 views
  • 0 likes
  • 2 in conversation