PAM from k-solution of hierarchical clustering
pamward(diss, k=3, method="ward", dist)
| diss | Distance matrix or object. | 
| k | Integer. Number of clusters. | 
| method | Method for the hierarchical clustering (see  | 
| dist | Deprecated. Use  | 
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.
An object of class "pam". See pam.object for details.   
Gilbert Ritschard
library(cluster) data(actcal) actcal.seq <- seqdef(actcal[1:200,13:24]) actcal.ham <- seqdist(actcal.seq, method = "HAM") clust <- pamward(actcal.ham, k = 4) table(clust$clustering)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.