Learn R Programming

biotools (version 2.0)

coph.tocher: Cophenetic Distances for Tocher's Clustering

Description

It computes the cophenetic distance matrix for a Tocher's clustering.

Usage

coph.tocher(obj)

Arguments

obj
an object of class tocher.

Value

  • An object of class "dist".

References

Silva, A.R. & Dias, C.T.S. (2013) A cophenetic correlation coefficient for Tocher's method. Pesquisa Agropecuaria Brasileira, 48:589-596.

See Also

tocher

Examples

Run this code
# Example 1
data(garlicdist)
garlic <- tocher(garlicdist)
coph <- coph.tocher(garlic)
cor(coph, garlicdist)

# Example 2
usa <- tocher(dist(USArrests))
cophUS <- coph.tocher(usa)
cor(cophUS, dist(USArrests))

# End (not run)

Run the code above in your browser using DataLab