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...

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1031 views
  • 0 likes
  • 3 in conversation