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

Hi,
Need some tips about how to do clustering for categorical variables.

Any epaper or thoughts are appreciated.

Thanks,

_kamal

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

Proc Corresp calculates coordinates for the levels of two or more categorical variables based on their crosstabulation. If you fed distances derived from those coordinates to Proc Cluster, you could cluster together the levels of two or more categorical variables. I never tried doing that.

PG

PG

View solution in original post

5 REPLIES 5
PGStats
Opal | Level 21

You could use proc distance and choose a measure appropriate for nominal variables to get a distance matrix. Then use that distance matrix in proc cluster.

PG

PG
SteveDenham
Jade | Level 19

I wonder if you could get the output from PROC CORRESP, or the necessary internal datasets, and feed those to PROC CLUSTER.

Steve Denham

PGStats
Opal | Level 21

Proc Corresp calculates coordinates for the levels of two or more categorical variables based on their crosstabulation. If you fed distances derived from those coordinates to Proc Cluster, you could cluster together the levels of two or more categorical variables. I never tried doing that.

PG

PG
koomalkc
Fluorite | Level 6

Thanks guys

turanbul
Calcite | Level 5

Hello,

I am also having a similar problem. As far as I can see using proc distance first and then apply Proc cluster seems appropriate.

What about in Miner? How can I do this with FASTCLUS and MODECLUS?

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 ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 7926 views
  • 2 likes
  • 4 in conversation