Skip to content

Clustering with 'agnes'

5 messages · Arnav Sheth, Uwe Ligges, Christian Hennig

#
Arnav Sheth wrote:

            
See the example of ?agnes, where the points are labeled.
Most easily use agnes() on a data.frame with rownames.

Uwe Ligges
#
Hi Uwe,

Thanks for the tip. I already have row labels. My problem is, (referring to the 
example below) how can I get R to tell me that upto three clusters, the points 
are clustered around (0,0), (1,0) and (0,1)?

Perhaps it is not even possible, I am not sure.

With regards,
Arnav


Quoting Uwe Ligges <ligges at statistik.uni-dortmund.de>:
#
Hi,

the underlying principle of hierarchical clustering is *not* that the
clusters can be represented by some centroid points. Most methods are
distance based, i.e. they can be calculated also in absence of any R^p
representation of the points.

If you want to recover centroids, you should do kmeans, normal mixture
clustering (mclust) or pam/clara. Of course you can also take the points
belonging to an agnes cluster and compute the mean vector (or any other
summary statistic), but that's not what hierarchical clustering is
meant to do (it may be reasonable with Ward's method, though).

Christian
On Wed, 4 Feb 2004, Arnav Sheth wrote:

            
***********************************************************************
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
#
Hey Christian,

That clarifies a lot of things. Thank you.

With regards,
Arnav


----- Original Message -----
From: "Christian Hennig" <fm3a004 at math.uni-hamburg.de>
To: "Arnav Sheth" <sheth at economics.rutgers.edu>
Cc: "Uwe Ligges" <ligges at statistik.uni-dortmund.de>;
<R-help at stat.math.ethz.ch>
Sent: Thursday, February 05, 2004 8:02 AM
Subject: Re: [R] Clustering with 'agnes'
to the
points