Description Usage Arguments Value Author(s) See Also Examples
View source: R/HCLUSTwrapper.R
Hierarchical clustering using Euclidean distances and (by default) the Ward criterion. The wrapper can perform an optimisation over clustering methods in case true labels are provided (i.e. optimising cluster assignments w.r.t. the Rand index).
1 2 | HCLUSTwrapper(xx, k, method = "ward.D", true_labels = NULL,
verbose = FALSE)
|
xx |
The data matrix (n x p). |
k |
The number of clusters. |
method |
Clustering method (see |
true_labels |
Vector of true cluster assignments (when provided, it is used to compute the Rand index). |
verbose |
Logical, when true: print progress information. |
model_fit |
Model fit (output of |
aRI |
Adjusted Rand index (when |
Bernd Taschler: bernd.taschler@dzne.de
1 | HCLUSTwrapper(xx = matrix(rnorm(500),50,10), k = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.