Learn R Programming

FisherEM (version 1.6)

fem.ari: Adjusted Rand index

Description

The function computes the adjusted Rand index (ARI) which allows to compare two clustering partitions.

Usage

fem.ari(x,y)

Arguments

x

A 'fem' object containing the first partition to compare.

y

The second partition to compare (as vector).

Value

ari

The value of the ARI.

See Also

fem, sfem, plot.fem, summary.fem

Examples

Run this code
# NOT RUN {
data(iris)
res = fem(iris[,-5],K=3,model='DkBk',method='reg')
res
plot(res)
fem.ari(res,as.numeric(iris[,5]))
# }

Run the code above in your browser using DataLab