BookmarkSubscribeRSS Feed
Whitlea
Obsidian | Level 7

Hi, 

 

I was curious to see if there was a procedure that regroups variables in a meaningful, statistically sound way.  

I have a variable with 10 different levels that I would like to reduce to 5 levels. I can regroup on my own but wanted to see if there was a faster, more sophisticated way of doing so.

 

Help is greatly appreciated!

2 REPLIES 2
PaigeMiller
Diamond | Level 26

I was curious to see if there was a procedure that regroups variables in a meaningful, statistically sound way.  

 

I suppose the answer depends on what you think is "meaningful". What do you think is "meaningful"?

 

To make this concrete, how would you combine the following groups? What would be a meaningful way to do this?

 

Toyota

Nissan

Mazda

Honda

Ford

Chevrolet

Volkswagen

Chrysler

Kia

--
Paige Miller
ballardw
Super User

If "meaningful" implies something like "these values have some similar characteristics" such as price then you may be looking for Clusters.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 765 views
  • 0 likes
  • 3 in conversation