RandIndex: Rand Index between partitions

Description Usage Arguments Details Value References Examples

View source: R/RandIndex.R

Description

Computes the Rand Index and the Adjusted Rand Index between two partitions

Usage

1
RandIndex(Partition1, Partition2)

Arguments

Partition1

Vector describing the first partition

Partition2

Vector describing the second partition

Details

Supports incomplete partitions (value 0 is coding for missing stimulus)

Value

List of following components:

Rand

Rand Index between the partitions

AdjustedRand

Adjusted rand Index between the partitions

References

Rand (1971) Jasa, 66, 846-850

Hubert & Arabie (1985) J. of Classification, 2, 193-218

Examples

1
2
3
4
5
6
7
8
  Partition1<-c(1,1,1,2,2,2)
  Partition2<-c(1,1,2,2,2,3)
  r<-RandIndex(Partition1,Partition2)
  r
  # $Rand
  # [1] 0.6
  # $AdjustedRand
  # [1] 0.1176471

FreeSortR documentation built on May 2, 2019, 2:47 p.m.