4 Nov 14:18
[Fwd: Component merge in hclust objects]
-------- Original Message -------- Subject: Component merge in hclust objects Date: Mon, 03 Nov 2008 10:39:57 +0100 From: Agustin Lobo <aloboaleu@...> Reply-To: Agustin.Lobo@... To: r-help@... <r-help@...> Having a non-standard problem of clustering, I'm making an "ad-hoc" procedure in R but would like my object to be a list like the one produced by hclust. I have a doubt regarding component merge: While the meaning of the negative elements is clear, I'm confused about the next sentence in the hclust help page: "If j is positive then the merge was with the cluster formed at the (earlier) stage j of the algorithm" As an example, I've made: > hc <- hclust(dist(USArrests[1:10,]), "ave") > hc$merge [,1] [,2] [1,] -1 -8 [2,] -3 -5 [3,] -6 -10 [4,] -4 3 [5,] 1 4 [6,] -2 2 [7,] -9 6 [8,] 5 7(Continue reading)
RSS Feed