Programming the statistical procedures from SAS

LASSO application in ordinal logistic regression

Reply
New Contributor
Posts: 2

LASSO application in ordinal logistic regression

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

SAS Super FREQ
Posts: 3,318

Re: LASSO application in ordinal logistic regression

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;
New Contributor
Posts: 2

Re: LASSO application in ordinal logistic regression

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

Ask a Question
Discussion stats
  • 2 replies
  • 200 views
  • 0 likes
  • 2 in conversation