clsupport | R Documentation |
Function performs hierarchic clustering (hclust
) with
the expected value of Jaccard dissimilarity as Beta random variate,
and compares the stability of each cluster branch in random samples
from Beta distribution.
clsupport(x, n = 1000, method = "average", softmatch = FALSE, plot = TRUE, ...)
clsets(hclus)
x |
Community data, will be treated as binary. |
n |
Number of random samples from Beta distribution. |
method |
Clustering method, passed to |
softmatch |
Estimate cluster similarity as Jaccard similarity or as a hard exact match between two clusters. |
plot |
Plot the |
... |
Other parameters; passed to |
hclus |
|
Function is basically a graphical tool that plots an
hclust
dendrogram and adds the count of similar
clusters in randomized cluster dendrograms, but it can also be
called only for the numeric result without plot.
The count of similar clusters in trees is based on randomized form Jaccard Beta dissimilarities, and is called here “support”. The support is calculated alternatively as the number of exactly similar branches in randomized trees or as a sum of maximum Jaccard similarities in observed and randomized trees (“softmatch”). The exact matches are very sensitive to single wandering sampling units, and often give very low “support” for large classes, whereas Jaccard-based “support” may give too high values for the smallest classes. For exact matches the “support” is given as count, and for soft maches (Jaccard-based) as a rounded integer per 1000.
Usually called to draw a plot, but will return the
“support”; the values are returned in the order of
merges in the agglomerative hierarchic clustering. Function
clsets
returns a list with indices of items (sampling
units) of each branch in their merge order.
hclust
, bayesjaccard
.
data(spurn)
clsupport(spurn) # exact match
clsupport(spurn, softmatch = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.