[R] Why CLARA clustering method does not give the same classes as when I do clustering manually?
c.hennig at ucl.ac.uk
Mon Feb 22 00:17:20 CET 2016
Clara uses the Euclidean distance.
Why you get different results can only be said if you provide a reproducible code example for both what you did in clara and what you did "manually".
*** --- ***
University College London, Department of Statistical Science
Gower St., London WC1E 6BT, phone +44 207 679 1698
c.hennig at ucl.ac.uk, www.homepages.ucl.ac.uk/~ucakche
From: R-help <r-help-bounces at r-project.org> on behalf of ABABAEI, Behnam <Behnam.ABABAEI at limagrain.com>
Sent: 19 February 2016 11:30
To: r-help at r-project.org
Subject: [R] Why CLARA clustering method does not give the same classes as when I do clustering manually?
I am using CLARA (in 'cluster' package). This method is supposed to assign each observation to the closest 'medoid'. But when I calculate the distance of medoids and observations manually and assign them manually, the results are slightly different (1-2 percent of occurrence probability). Does anyone know how clara calculates dissimilarities and why I get different clustering results?
[[alternative HTML version deleted]]
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help