Can categorical variables be used in hierarchical clustering? I have heard only continuous variables are used, but have seen people discussing categorical variables may / may not be used as well. Can anyone provide insight?
1 Answer
Yes of course, categorical data are frequently a subject of cluster analysis, especially hierarchical. A lot of proximity measures exist for binary variables (including dummy sets which are the litter of categorical variables); also entropy measures. Clusters of cases will be the frequent combinations of attributes, and various measures give their specific spice for the frequency reckoning. One problem with clustering categorical data is stability of solutions. And this recent question puts forward the issue of variable correlation.
-
1$\begingroup$ I've copied this comment by @ttnphns as a community wiki answer because the comment is, more or less, an answer to this question. We have a dramatic gap between answers and questions. At least part of the problem is that some questions are answered in comments: if comments which answered the question were answers instead, we would have fewer unanswered questions. $\endgroup$– mktCommented Aug 27, 2019 at 16:00
hierarchical clustering categorical
to read related threads. $\endgroup$