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".

Best wishes,
Christian

*** --- ***
Christian Hennig
University College London, Department of Statistical Science
Gower St., London WC1E 6BT, phone +44 207 679 1698
c.hen...@ucl.ac.uk, www.homepages.ucl.ac.uk/~ucakche

________________________________________
From: R-help <r-help-boun...@r-project.org> on behalf of ABABAEI, Behnam 
<behnam.abab...@limagrain.com>
Sent: 19 February 2016 11:30
To: r-help@r-project.org
Subject: [R] Why CLARA clustering method does not give the same classes as when 
I do clustering manually?

Hi,


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?


Behnam.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to