BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
roopk
Calcite | Level 5

I have a dataset that has 700,000 rows and various variables with mixed data-types: categorical, numeric and binary. I have read several suggestions on how to cluster categorical data but still couldn't find a solution for my problem. The common suggestions are listed below:

1) Use proc distance for the categorical variables to get a distance matrix and then use proc cluster: I can't do that as my dataset is too big to be handled by proc cluster. Another constraint is that even proc fastclus can handle a large dataset but it doesn't work with distance matrix or anything other than numeric data.

2) I don't find "creating dummy variables for the categorical variables" a good solution either as I feel the clusters would be hard to interpret.

3) Another suggestion was to use HPCLUS but HPCLUS can either use only categorical variables or only numeric interval variables to perform clustering but it does not perform clustering for mixed levels of input variables

 

Is there any other solution/proc available in SAS that could perform clustering on a large dataset with mixed variable types? 

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

EM has HPCLUS which should handle larger problems.

PG

View solution in original post

8 REPLIES 8
Reeza
Super User

How many variables do you have? 700k is a lot but I would have assumed SAS could handle it. Can you change your memory settings to allow it to be processed? 

roopk
Calcite | Level 5
There are 100+ variables in total but I will do variable selection before using cluster analysis. I might start with only 8-10 variables but the issue is I don't know how to do cluster analysis with binary/categorical variables.
PGStats
Opal | Level 21

EM has HPCLUS which should handle larger problems.

PG
roopk
Calcite | Level 5
Can it handle mixed variable types too?
roopk
Calcite | Level 5
Thank you so much!
brintonj
Calcite | Level 5

Pg 82: "HPCLUS procedure uses only numeric interval variables or only nominal variables to perform clustering. It does not perform clustering for mixed levels of input variables."

PGStats
Opal | Level 21

My bad. Out of the HP parallel processing procedures I only use HPSPLIT which allows mixed types. I wrongly assumed that HPCLUS would do the same.

 

Thanks @brintonj for setting the record strait.

PG

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 8 replies
  • 7223 views
  • 2 likes
  • 4 in conversation