Learn R Programming

ClustOfVar (version 1.1)

rand: Rand index between two partitions

Description

Returns the Rand index, the corrected Rand index or the asymmetrical Rand index. The asymmetrical Rand index (corrected or not) measures the inclusion of a partition P into and partition Q with the number of clusters in P greater than the number of clusters in Q.

Usage

rand(P, Q, symmetric = TRUE, adj = TRUE)

Arguments

P

a factor, e.g., the first partition.

Q

a factor, e.g., the second partition.

symmetric

a boolean. If FALSE the asymmetrical Rand index is calculated.

adj

a boolean. If TRUE the corrected index is calculated.

See Also

stability