Skip to content
Prev 32059 / 398506 Next

hclust function

I am trying to use hclust function from mva package but I can't 
understand what the variable height stands for when I use the ward 
criterion. Here is a small example :

library(mva)
x <- c(1,2,3,4)
cluster <- hclust(dist(x), method="ward")
cluster$height

cluster$height = 1 1 3 but it is supposed to be 0.5 0.5 4

the distance between clusters is Ni*Nj/(Ni+Nj)*||Gi-Gj||^2 and 
cluster$height does not match with this distance.

Does someone has any idea ?

Thanks in advance.

Philippe Hup?