BookmarkSubscribeRSS Feed
csetzkorn
Lapis Lazuli | Level 10

I try to follow this. I use this code:

 

PROC GLMSELECT data=TrainingData valdata=ValData plots=coefficients;
	model Y
	= 
	X1
	X2
	/selection=elasticnet(steps=120 choose=validate);
run;

I get these errors:

 

ERROR 22-322: Syntax error, expecting one of the following: BACKWARD, FORWARD, LAR, LASSO, NONE, STEPWISE.
ERROR 76-322: Syntax error, statement will be ignored.

 

Any idea? Code above looks OK to me ...

1 REPLY 1
Rick_SAS
SAS Super FREQ

SELECTION=ELASTICNET was implemented in SAS/STAT 13.1, which was released as part of SAS 9.4M1 in 2013. The error message indicates that you are running an older version of SAS that does not have support for the elastic net algorithm.

 

You can submit:

%put SYSVLONG = &SYSVLONG;

and look in the log to find your version of SAS.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 625 views
  • 1 like
  • 2 in conversation