BookmarkSubscribeRSS Feed
cksuemoto
Calcite | Level 5

Hi all,

I need to implement LASSO for variable selection in the cotext of an ordinal logistic regression.

I found the awesome command PROC GLMSELECT, but it does not apply to my case because my outcome is ordinal.

Please help!

Thanks

Claudia

2 REPLIES 2
Rick_SAS
SAS Super FREQ

I wonder if you have looked at the HPGENSELECT procedure, which supports LASSO.  You didn't supply any data, but try to modify this code, which is taken from the LOGISTIC documentation for ordinal regression (Caution: untested! Didn't verify that this results in cumulative logit model.)

 

data Cheese;
   do Additive = 1 to 4;
      do y = 1 to 9;
         input freq @@;
         output;
      end;
   end;
   label y='Taste Rating';
   datalines;
0  0  1  7  8  8 19  8  1
6  9 12 11  7  6  1  0  0
1  1  6  8 23  7  5  1  0
0  0  0  1  3  7 14 16 11
;

title 'Multiple Response Cheese Tasting Experiment';
proc hpgenselect data=Cheese plots=all;
   freq freq;
   class Additive(ref='4');
   model y=Additive / link=logit ;
   selection details=all method=lasso;
run;
cksuemoto
Calcite | Level 5

Dear Rick

Thanks a lot, it seems that it is exactly what I need.

The only problem is that I have SAS 9.3, which does not have this command.

Any other option?

Best,

Claudia

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 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
  • 2236 views
  • 0 likes
  • 2 in conversation