ari {bigergm} | R Documentation |
Compute the adjusted rand index (ARI) between two clusterings
Description
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.
Usage
ari(z_star, z)
Arguments
z_star |
The true block membership |
z |
The estimated block membership |
Value
The adjusted rand index
Examples
data(toyNet)
set.seed(123)
ari(z_star = toyNet%v% "block",
z = sample(c(1:4),size = 200,replace = TRUE))
[Package bigergm version 1.2.1 Index]