Re: [R] Hierarchical Clustering Using Mutual Information

From: Werner Bier <aliscla_at_yahoo.com>
Date: Tue 13 Dec 2005 - 11:33:03 EST


Thanks a lot. I have just test it and... it works! :-)   J.

Martin Maechler <maechler@stat.math.ethz.ch> wrote:   >>>>> "Julio" == Julio Thomas
>>>>> on Fri, 9 Dec 2005 21:13:20 +0000 (GMT) writes:

Julio> Dear R-helpers, Is there somebody who knows if R has
Julio> already a build in function for Hierarchical
Julio> Clustering which uses Mutual Information as proximity
Julio> measure?

The most prominent hiearchical clustering functions in R, hclust() and agnes() and diana() {package 'cluster'}, are based on general dissimilarity "matrices";

so you just need to be able compute
d(i,j) <- Mutual_Information( unit[i], unit[j] ) and then use for example hclust().

If 'MI' was a matrix with these numbers, you'd use

dMI <- as.dist(MI)
hc.res <- hclust(dMI, ....)

plot(hc.res, .....)
....

Martin Maechler, ETH Zurich



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html                            

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Dec 13 11:40:44 2005

This archive was generated by hypermail 2.1.8 : Tue 13 Dec 2005 - 17:27:21 EST