Programming the statistical procedures from SAS

Clustering Categorical Variables

Reply
Contributor
Posts: 27

Clustering Categorical Variables

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

Any epaper or thoughts are appreciated.

Thanks,

_kamal

Respected Advisor
Posts: 4,606

Re: Clustering Categorical Variables

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
Respected Advisor
Posts: 2,655

Re: Clustering Categorical Variables

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

Steve Denham

Respected Advisor
Posts: 4,606

Re: Clustering Categorical Variables

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
Contributor
Posts: 27

Re: Clustering Categorical Variables

Thanks guys

New Contributor
Posts: 3

Re: Clustering Categorical Variables

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?

Ask a Question
Discussion stats
  • 5 replies
  • 1538 views
  • 0 likes
  • 4 in conversation