01-07-2015 02:37 PM
I was doing elastic net logistic regression by using the following code in E guide. But kept giving me error "ERROR 22-322: Syntax error, expecting one of the following: BACKWARD, FORWARD, LAR, LASSO, NONE, STEPWISE. " Does anyone know why?
proc glmselect data=work.train1 valdata=work.valid1 plots=coefficients;
class Children StudentMaritalStatus PellEligFlag sex startingGPA degree school Income Military / param=ref;
model Success =
AttendUniqDaysSum VisitsSum PageSum highlightSum PostSum
children studentmaritalstatus PellEligFlag sex startingGPA degree school Income military/
selection=elasticnet(steps=120 L2=0.001 choose=validate);
01-09-2015 02:45 PM
Yes, but the important issue is what version of SAS is running. EG 6.1 can run with many versions of SAS. Submit the %PUT statement and copy/paste the string that appears in the SAS Log. Almost surely your SAS version is old enough that it doesn't include the elastic net option.