BookmarkSubscribeRSS Feed
☑ This topic is solved. 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-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!

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