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

Hello Everybody!

 

I ran the code below:

 

proc hpgenselect data=out.final lassosteps=50;
	model &depvar (event='1') =  &VARLIST / dist=binomial;
	partition ROLEVAR=Selected(TRAIN="1" VALIDATE="0");
	selection method=LASSO(SELECT=SBC choose=validate stop=none);
run;

and I get the error below

ERROR 22-322: Syntax error, expecting one of the following: ), ADAPTIVE, CHOOSE, LSCOEFFS, MAXEF, MAXEFFECTS, MAXSTEP, MAXSTEPS, SLE, SLENTRY, SLS, SLSTAY, STOP. 

 

I'm a newbie with HPGENSELECT. Anyone know what I'm doing wrong?

 

1 ACCEPTED SOLUTION

Accepted Solutions
ed_sas_member
Meteorite | Level 14

Hi @BTAinRVA 

 

The SELECT= option is not supported by the LASSO method.

Here is the link to the documentation: https://support.sas.com/documentation/onlinedoc/stat/142/hpgenselect.pdf

Please check p.4224 regarding the SELECTION statement.

 

Best,

View solution in original post

2 REPLIES 2
ed_sas_member
Meteorite | Level 14

Hi @BTAinRVA 

 

The SELECT= option is not supported by the LASSO method.

Here is the link to the documentation: https://support.sas.com/documentation/onlinedoc/stat/142/hpgenselect.pdf

Please check p.4224 regarding the SELECTION statement.

 

Best,

SAS_Rob
SAS Employee

I think it is choking on the SELECT= option.  The selection method is based on the CHOOSE= option (which you have.  Take a look here for the valid options.

https://go.documentation.sas.com/?docsetId=statug&docsetTarget=statug_hpgenselect_syntax14.htm&docse...

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

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
  • 2 replies
  • 970 views
  • 5 likes
  • 3 in conversation