Skip to main content
1 of 4
Jin
  • 61
  • 2

PAM with Gower distance matrix

My data is is mostly continuous but has one binary variable, I tried the pam algorithm in R with the Gower index but the number of clusters that give the best silhouette width is 2 - allowing the binary variable to completely dominate the result. Is PAM the wrong approach? Is it ok to choose a higher k just because it will give more meaningful results?

Jin
  • 61
  • 2