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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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