pamward: PAM from k-solution of hierarchical clustering
Description
Runs a pam clustering (pam) from the solution in k groups of a hierarchical clustering (agnes) .
Usage
pamward(dist, k=3, method="ward")
Arguments
dist
A distance matrix or object.
k
Number of clusters.
method
Method for the hierarchical clustering (see agnes)
Value
An object of class "pam". See pam.object for details.
encoding
latin1
Details
The function first runs the hierarchical clustering, retrieves the medoids of the solution for the provided k and uses those medoids as start centers for the pam partitioning.