Learn R Programming

mixture (version 2.1.1)

ARI: Adjusted Rand Index

Description

Calculates an adjusted for chance Rand index.

Usage

ARI(x,y)

Arguments

x

predictor class memberships

y

true class memberships

Author

Nik Pocuca, Ryan P. Browne and Paul D. McNicholas.

Maintainer: Paul D. McNicholas <mcnicholas@math.mcmaster.ca>

Examples

Run this code
x <- sample(1:10, size = 100, replace = TRUE)
y <- sample(1:10, size = 100, replace = TRUE)
ARI(x,y)

Run the code above in your browser using DataLab