Partitioning Around Medoids (PAM) clustering for harmonized data
cluster.pam.Rd
This function performs Partitioning Around Medoids (PAM) clustering on the harmonized
training data using specified distance measures (euclidean, pearson, or spearman).
It adds the clustering results to the cluster.result
slot of the precision
object.
Arguments
- object
A
precision
object containing harmonized training data in the slotharmon.train.data
.- k
Integer. Number of clusters. If NULL or not given, uses the number of unique labels in training data.
- distance
Distance measure to use for clustering. Options are "euclidean", "pearson", or "spearman". Default is "euclidean".