Description Usage Arguments Value Author(s) References Examples
View source: R/recluster.expl.R
This function computes the fraction of the distances contained in a dissimilarity matrix which is explained by a clustering solution of the elements. The value is obtained by computing the sum of all the dissimilarity values among elements belonging to different clusters and divided by the sum of all the cells of the original dissimilarity matrix.
1 | recluster.expl(mat, clust)
|
mat |
A dissimilarity matrix |
clust |
A clustering solution for the cases contained in the dissimilarity matrix. |
A number ranging between 0 and 1 indicating the fraction of explained dissimilarity.
Leonardo Dapporto
Holt, B.G. et al "An Update of Wallace's Zoogeographic Regions of the World." Science, 339:74-78.
1 2 3 4 5 |
Loading required package: ape
$matrix
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
A 1 2 3 3 4 5 5
B 1 2 3 3 4 4 4
lint 1 1 1 1 2 2 2
sint 2 3 4 4 5 6 6
xint 2 3 4 4 5 6 6
lA 1 1 2 2 3 3 3
lB 1 1 1 1 1 1 1
sA 2 3 4 5 6 7 8
sB 2 3 4 5 6 7 7
$expl.div
[1] 0.7100320 0.8505178 0.8862664 0.9511436 0.9670318 0.9809341 0.9920559
$nclust
[1] 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.