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

Hello!

 

Let us assume that we have an ordinal predictor and we want to run a linear or a logistc regression in VDMML. How does SAS VDMML handles the ordinal predictor e.g. as interval or using a dummy coding e.g. stairwise coding?

 

Thanks in advance,

 

 

Andreas

1 ACCEPTED SOLUTION

Accepted Solutions
sbxkoenk
SAS Super FREQ

From the SAS 9.4 M7 help :

 

sbxkoenk_0-1643711964849.png

 

For bathtub coding, see here :

SAS® Enterprise Miner™ 15.2: Reference Help
Neural Network Node: Reference
https://go.documentation.sas.com/doc/en/emref/15.2/p0zbgj1tu3h1uhn1x6regixbdg7v.htm

 

CTRL-F : bathtub coding

 

Cheers,

Koen

View solution in original post

3 REPLIES 3
sbxkoenk
SAS Super FREQ

Hello @andreas_zaras ,

 

Any idea which procedures you are talking about?

  • REGSELECT for Linear Regression?
  • LOGSELECT for Logistic Regression?

An ordinal predictor should be put in the CLASS statement, such that it is considered as a discrete | categorical input. It should NOT be entered into the model as an interval-scaled input!

For ordinal inputs, SAS supports bathtub coding and THERMOMETER (cumulative parameterization) coding. I think bathtub coding is only supported when constructing the input layer in a neural network.

 

I do not know about "stairwise coding" but you can make a little macro for it.

 

Cheers,

Koen

andreas_zaras
Pyrite | Level 9
Any details about bathtub and thermometer encoding? I mean how this is done using summy variables (i guess?)
sbxkoenk
SAS Super FREQ

From the SAS 9.4 M7 help :

 

sbxkoenk_0-1643711964849.png

 

For bathtub coding, see here :

SAS® Enterprise Miner™ 15.2: Reference Help
Neural Network Node: Reference
https://go.documentation.sas.com/doc/en/emref/15.2/p0zbgj1tu3h1uhn1x6regixbdg7v.htm

 

CTRL-F : bathtub coding

 

Cheers,

Koen

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1038 views
  • 2 likes
  • 2 in conversation