From alberto.fernandez at urv.cat  Thu Apr 21 11:37:10 2016
From: alberto.fernandez at urv.cat (=?iso-8859-1?Q?Alberto_Fern=E1ndez_Sabater?=)
Date: Thu, 21 Apr 2016 09:37:10 +0000
Subject: [Rd] "cophenetic" function for objects of class "dendrogram"
Message-ID: <VI1PR01MB138950829C65980A4FF9CC01F56E0@VI1PR01MB1389.eurprd01.prod.exchangelabs.com>

Hello,


I have been using the "cophenetic" function for objects of class "dendrogram" and I have realised that it gives different results when it is used with objects of class "hclust". For instance, running the first example in the help file of the "cophenetic" function,


d1 <- dist(USArrests)

hc <- hclust(d1, "ave")

d2 <- cophenetic(hc)

cor(d1, d2)  # 0.7659


the result given is different to the one obtained using an object of class "dendrogram",


dendro <- as.dendrogram(hc)

d3 <- cophenetic(dendro)

cor(d1, d3)  # 0.0151


I think that it would be desirable to obtain the same result with all the "cophenetic" methods, irrespectively of the class of the object used. If this is not possible, users could be warned in the help file.


Thanks,

Alberto Fernandez


	[[alternative HTML version deleted]]



[Rd] "cophenetic" function for objects of class "dendrogram"
=?iso-8859-1?Q?Alberto_Fern=E1ndez_Sabater?=