shipunov (version 1.5)

Co.test: Correlation test between cophenetic and original distances

Description

Correlation test between cophenetic and original distances

Usage

Co.test(hclust, dist, method="spearman")

Arguments

hclust

'hclust' object

dist

Distance matrix

method

How to calculate correlation

Details

Correlation between cophenetic distances and original distances.

Reveals the consistency of used methods.

Spearman correlation is default because cophenetic distances are frequently non-parametric.

Examples

Run this code
# NOT RUN {
iris.d <- dist(iris[, -5])
iris.h <- hclust(iris.d)
Co.test(iris.h, iris.d, method="kendall")
# }

Run the code above in your browser using DataLab