BookmarkSubscribeRSS Feed
MLAC
Fluorite | Level 6

I am working on a binary logistic regression problem with nominal attributes that have multiple levels, for example: 

 

Age:

young(10-18)

adult(19-45)

mid_age(46-65)

senior(65+) 

 

How SAS handle a nominal attribute that has more than 2 levels in Logistic Regression?  

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Under the hood, it will turn these four different age groups into dummy variables and then fits the model. In your case, where there are four different age groups, it would use three dummy variables.

--
Paige Miller
Reeza
Super User
Depends on what you specify as your parameterization method. There are several methods that are noted in the documentation, each are handled slightly differently, the most common being dummy coding 0/1 for all variables and dropping one variable.
https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_logistic_syntax05.htm&docsetVersi...

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 2 replies
  • 573 views
  • 0 likes
  • 3 in conversation