ari | R Documentation |
This function computes the adjusted rand index (ARI) of the true and estimated block membership (its definition can be found here https://en.wikipedia.org/wiki/Rand_index). The adjusted rand index is used as a measure of association between two group membership vectors. The more similar the two partitions z_star and z are, the closer the ARI is to 1.
ari(z_star, z)
z_star |
The true block membership |
z |
The estimated block membership |
The adjusted rand index
data(toyNet)
set.seed(123)
ari(z_star = toyNet%v% "block",
z = sample(c(1:4),size = 200,replace = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.