Learn R Programming

⚠️There's a newer version (0.2.6) of this package.Take me there.

partitionComparison (version 0.2.3)

Implements Measures for the Comparison of Two Partitions

Description

Provides several measures ((dis)similarity, distance/metric, correlation, entropy) for comparing two partitions of the same set of objects. The different measures can be assigned to three different classes: Pair comparison (containing the famous Jaccard and Rand indices), set based, and information theory based. Many of the implemented measures can be found in Albatineh AN, Niewiadomska-Bugaj M and Mihalko D (2006) and Meila M (2007) . Partitions are represented by vectors of class labels which allow a straightforward integration with existing clustering algorithms (e.g. kmeans()). The package is mostly based on the S4 object system.

Copy Link

Version

Install

install.packages('partitionComparison')

Monthly Downloads

193

Version

0.2.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Fabian Ball

Last Published

December 19th, 2017

Functions in partitionComparison (0.2.3)

PairCoefficients-class

S4 class to represent coefficients of object pairs for the comparison of two object partitions (say \(P\) and \(Q\)).
N01p

Method to retrieve the complex coefficient \(N'_{01}\)
N

Method to retrieve the complex coefficient \(N\)
N10

Method to retrieve the coefficient \(N_{10}\)
N00

Method to retrieve the coefficient \(N_{00}\)
N01

Method to retrieve the coefficient \(N_{01}\)
N11

Method to retrieve the coefficient \(N_{11}\)
baulieu1

Baulieu Index 1
N12

Method to retrieve the complex coefficient \(N_{12}\)
baulieu2

Baulieu Index 2
classificationErrorDistance

Classification Error Distance
computePairCoefficients

Compute the four coefficients \(N_{11}\), \(N_{10}\), \(N_{01}\), \(N_{00}\)
compareAll

Compare two partitions with all measures
Partition-class

Simple S4 class to represent a partition of objects as vector of class labels.
N10p

Method to retrieve the complex coefficient \(N'_{10}\)
jaccardCoefficient

Jaccard Coefficient
dongensMetric

Dongen's Metric
kulczynski

Kulczynski Index
adjustedRandIndex

Adjusted Rand Index
entropy

Entropy
gammaStatistics

Gamma Statistics
normalizedLermanIndex

Normalized Lerman Index
normalizedMutualInformation

Normalized Mutual Information
goodmanKruskal

Goodman & Kruskal Index
fagerMcGowan

Fager & McGowan Index
mirkinMetric

Mirkin Metric
folwkesMallowsIndex

Folwkes & Mallows Index
partitionComparison-package

partitionComparison: Implements Measures for the Comparison of Two Partitions
mutualInformation

Mutual Information
pearson

Pearson Index
[<-,Partition-method

Subsetting '>Partition instances
rogersTanimoto

Rogers & Tanimoto Index
russelRao

Russel & Rao Index
variationOfInformation

Variation of Information
czekanowski

Czekanowski Index
larsenAone

Larsen & Aone Measure
gowerLegendre

Gower & Legendre Index
hamann

Hamann Coefficient
lermanIndex

Lerman Index
rvCoefficient

RV Coefficient
peirce

Peirce Index
mcconnaughey

McConnaughey Index
minkowskiMeasure

Minkowski Measure
projectionNumber

Compute the projection number of two partitions
randIndex

Rand Index
sokalSneath2

Sokal & Sneath Index 2
registerPartitionVectorSignatures

Make comparison measures usable with any vectors
sokalSneath3

Sokal & Sneath Index 3
sokalSneath1

Sokal & Sneath Index 1
wallaceI

Wallace I
wallaceII

Wallace II
N21

Method to retrieve the complex coefficient \(N_{21}\)