Computes the proportion of pairs expected to be made of elements from the same cluster.
Examples
clusters <- sample(LETTERS[1:5], 100, replace=TRUE)
propHomotypic(clusters)
#> [1] 0.2034
Computes the proportion of pairs expected to be made of elements from the same cluster.
clusters <- sample(LETTERS[1:5], 100, replace=TRUE)
propHomotypic(clusters)
#> [1] 0.2034