
Last chance! 50% off unlimited learning
Sale ends in
tocher
performs the Tocher (Rao, 1952) optimization clustering from a distance matrix.
The cophenetic distance matrix for a Tocher's clustering can also be computed using the methodology proposed
by Silva and Dias (2013).
# S3 method for dist
tocher(d, algorithm = c("original", "sequential"))
# S3 method for tocher
print(x, ...)
# S3 method for tocher
cophenetic(x)
An object of class tocher
. A list of
the call which produced the result.
character; the algorithm that has been used as input.
a list of length k (the number of clusters),
containing the labels of the objects in d
for each cluster.
a numeric vector indicating the class (the cluster) of each object in d
.
a numeric vector containing the clustering criteria - the greatest amongst
the smallest distances involving each object in d
. If algorithm = "original"
,
this vector contains an unique value, i.e., the same criterion is used for every clustering step.
a matrix of distances within (diagonal) and between (off-diagonal) clusters.
the input object.
an object of class "dist"
.
a character indicating the algorithm to be used for clustering objects.
It must be one of the two: "original"
(default) or "sequential"
. The latter is
the method proposed by Vasconcelos et al. (2007), and sometimes called "modified" Tocher.
an object of class "tocher"
.
optional further arguments from print
.
Clustering a large number of objects (say 300 or more) can be time demanding.
Anderson Rodrigo da Silva <anderson.agro@hotmail.com>
Cruz, C.D.; Ferreira, F.M.; Pessoni, L.A. (2011) Biometria aplicada ao estudo da diversidade genetica. Visconde do Rio Branco: Suprema.
Rao, R.C. (1952) Advanced statistical methods in biometric research. New York: John Wiley and Sons.
Sharma, J.R. (2006) Statistical and biometrical techniques in plant breeding. Delhi: New Age International.
Silva, A.R.; Dias, C.T.S. (2013) A cophenetic correlation coefficient for Tocher's method. Pesquisa Agropecuaria Brasileira, 48:589-596.
Vasconcelos, E.S.; Cruz, C.D.; Bhering, L.L.; Resende Junior, M.F.R. (2007) Alternative methodology for the cluster analysis. Pesquisa Agropecuaria Brasileira, 42:1421-1428.
dist
, D2.dist
, cophenetic
, distClust
, hclust
# example 1
data(garlicdist)
(garlic <- tocher(garlicdist))
garlic$distClust # cluster distances
# example 2
data(USArrests)
(usa <- tocher(dist(USArrests)))
usa$distClust
# cophenetic correlation
cophUS <- cophenetic(usa)
cor(cophUS, dist(USArrests))
# using the sequential algorithm
(usa2 <- tocher(dist(USArrests), algorithm = "sequential"))
usa2$criterion
# example 3
data(eurodist)
(euro <- tocher(eurodist))
euro$distClust
# End (not run)
Run the code above in your browser using DataLab