[R] distance to cluster center

Christian Hennig fm3a004 at math.uni-hamburg.de
Thu Aug 19 13:18:59 CEST 2004


On Wed, 18 Aug 2004, Moises Hassan wrote:

> Is there a way to get the distance between each point and the center of
> the cluster it was assigned to in cluster methods such as agnes, pam,
> and clara.

I don't think that it's directly available, but for pam and clara you can
easily get it from your dissimilarity matrix using the information
given in the components clustering and
medoids of the output object (see ?pam.object, ?clara.object).

For hierarchical clustering methods as implemented in agnes, there is no
such thing as a well defined cluster center.

Christian


***********************************************************************
Christian Hennig
Fachbereich Mathematik-SPST/ZMS, Universitaet Hamburg
hennig at math.uni-hamburg.de, http://www.math.uni-hamburg.de/home/hennig/
#######################################################################
ich empfehle www.boag-online.de




More information about the R-help mailing list