In my dataset we have both continuous and discrete variables. I want to know whether we can do hierarchical clustering using both type of variables.
Tell me more
×
Cross Validated is a question and answer site for
statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.
|
|
One way is to use Gower similarity coefficient which is a composite measure; it takes quantitative (such as rating scale), binary (such as present/absent) and nominal (such as worker/teacher/clerk) variables. When all variables are quantitative then the coefficient is a normalized Manhattan distance converted into similarity. When all variables are binary then the coefficient is a famous Jaccard matching coefficient. When all variables are nominal then the coefficient is dice matching coefficient that you obtain from your nominal vars if recode them into dummy vars. Usually a program calculating Gower will allow you to weight variables, that is, their contribution, to the composite formula. |
|||||||||||
|