Package: partitionComparison 0.2.6

Fabian Ball

partitionComparison: Implements Measures for the Comparison of Two Partitions

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) <doi:10.1007/s00357-006-0017-z> and Meila M (2007) <doi:10.1016/j.jmva.2006.11.013>. 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.

Authors:Fabian Ball [aut, cre, cph, ctb], Andreas Geyer-Schulz [cph]

partitionComparison_0.2.6.tar.gz
partitionComparison_0.2.6.zip(r-4.5)partitionComparison_0.2.6.zip(r-4.4)partitionComparison_0.2.6.zip(r-4.3)
partitionComparison_0.2.6.tgz(r-4.4-any)partitionComparison_0.2.6.tgz(r-4.3-any)
partitionComparison_0.2.6.tar.gz(r-4.5-noble)partitionComparison_0.2.6.tar.gz(r-4.4-noble)
partitionComparison_0.2.6.tgz(r-4.4-emscripten)partitionComparison_0.2.6.tgz(r-4.3-emscripten)
partitionComparison.pdf |partitionComparison.html
partitionComparison/json (API)

# Install 'partitionComparison' in R:
install.packages('partitionComparison', repos = c('https://kit-iism-em.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/kit-iism-em/partitioncomparison/issues

On CRAN:

comparisondissimilarity-measuresdistance-measurespartitionssimilarity-measures

3.80 score 2 stars 63 scripts 206 downloads 1 mentions 50 exports 3 dependencies

Last updated 1 years agofrom:abea0d0e96. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 12 2024
R-4.5-winOKNov 12 2024
R-4.5-linuxOKNov 12 2024
R-4.4-winOKNov 12 2024
R-4.4-macOKNov 12 2024
R-4.3-winOKNov 12 2024
R-4.3-macOKNov 12 2024

Exports:adjustedRandIndexbaulieu1baulieu2classificationErrorDistancecompareAllcomputePairCoefficientsczekanowskidongensMetricentropyfagerMcGowanfolwkesMallowsIndexgammaStatisticsgoodmanKruskalgowerLegendrehamannjaccardCoefficientkulczynskilarsenAonelermanIndexmcconnaugheyminkowskiMeasuremirkinMetricmutualInformationNN00N01N01pN10N10pN11N12N21normalizedLermanIndexnormalizedMutualInformationPairCoefficientsPartitionpearsonpeirceprojectionNumberrandIndexregisterPartitionVectorSignaturesrogersTanimotorusselRaorvCoefficientsokalSneath1sokalSneath2sokalSneath3variationOfInformationwallaceIwallaceII

Dependencies:lpSolverbibutilsRdpack

Readme and manuals

Help Manual

Help pageTopics
partitionComparison: Implements Measures for the Comparison of Two PartitionspartitionComparison-package partitionComparison
Subsetting Partition instances[<-,Partition-method
Adjusted Rand IndexadjustedRandIndex adjustedRandIndex,PairCoefficients,missing-method adjustedRandIndex,Partition,Partition-method
Baulieu Index 1baulieu1 baulieu1,PairCoefficients,missing-method baulieu1,Partition,Partition-method
Baulieu Index 2baulieu2 baulieu2,PairCoefficients,missing-method baulieu2,Partition,Partition-method
Classification Error DistanceclassificationErrorDistance classificationErrorDistance,Partition,Partition-method
Compare two partitions with all measurescompareAll compareAll,Partition,Partition-method
Compute the four coefficients N_{11}, N_{10}, N_{01}, N_{00}computePairCoefficients
Czekanowski Indexczekanowski czekanowski,PairCoefficients,missing-method czekanowski,Partition,Partition-method
Dongen's MetricdongensMetric dongensMetric,Partition,Partition-method
Entropyentropy entropy,ANY,missing-method entropy,numeric,numeric-method entropy,Partition,numeric-method
Fager & McGowan IndexfagerMcGowan fagerMcGowan,PairCoefficients,missing-method fagerMcGowan,Partition,Partition-method
Folwkes & Mallows IndexfolwkesMallowsIndex folwkesMallowsIndex,PairCoefficients,missing-method folwkesMallowsIndex,Partition,Partition-method
Gamma StatisticsgammaStatistics gammaStatistics,PairCoefficients,missing-method gammaStatistics,Partition,Partition-method
Goodman & Kruskal IndexgoodmanKruskal goodmanKruskal,PairCoefficients,missing-method goodmanKruskal,Partition,Partition-method
Gower & Legendre IndexgowerLegendre gowerLegendre,PairCoefficients,missing-method gowerLegendre,Partition,Partition-method
Hamann Coefficienthamann hamann,PairCoefficients,missing-method hamann,Partition,Partition-method
Jaccard CoefficientjaccardCoefficient jaccardCoefficient,PairCoefficients,missing-method jaccardCoefficient,Partition,Partition-method
Kulczynski Indexkulczynski kulczynski,PairCoefficients,missing-method kulczynski,Partition,Partition-method
Larsen & Aone MeasurelarsenAone larsenAone,Partition,Partition-method
Lerman IndexlermanIndex lermanIndex,Partition,Partition,missing-method lermanIndex,Partition,Partition,PairCoefficients-method
McConnaughey Indexmcconnaughey mcconnaughey,PairCoefficients,missing-method mcconnaughey,Partition,Partition-method
Minkowski MeasureminkowskiMeasure minkowskiMeasure,PairCoefficients,missing-method minkowskiMeasure,Partition,Partition-method
Mirkin MetricmirkinMetric mirkinMetric,PairCoefficients,missing-method mirkinMetric,Partition,Partition-method
Mutual InformationmutualInformation mutualInformation,Partition,Partition-method
Method to retrieve the complex coefficient NN N,PairCoefficients-method
Method to retrieve the coefficient N_{00}N00 N00,PairCoefficients-method
Method to retrieve the coefficient N_{01}N01 N01,PairCoefficients-method
Method to retrieve the complex coefficient N'_{01}N01p N01p,PairCoefficients-method
Method to retrieve the coefficient N_{10}N10 N10,PairCoefficients-method
Method to retrieve the complex coefficient N'_{10}N10p N10p,PairCoefficients-method
Method to retrieve the coefficient N_{11}N11 N11,PairCoefficients-method
Method to retrieve the complex coefficient N_{12}N12 N12,PairCoefficients-method
Method to retrieve the complex coefficient N_{21}N21 N21,PairCoefficients-method
Normalized Lerman IndexnormalizedLermanIndex normalizedLermanIndex,Partition,Partition,missing-method normalizedLermanIndex,Partition,Partition,PairCoefficients-method
Normalized Mutual InformationnormalizedMutualInformation normalizedMutualInformation,Partition,Partition,character-method normalizedMutualInformation,Partition,Partition,missing-method
S4 class to represent coefficients of object pairs for the comparison of two object partitions (say P and Q).PairCoefficients PairCoefficients-class
Simple S4 class to represent a partition of objects as vector of class labels.Partition Partition-class
Pearson Indexpearson pearson,PairCoefficients,missing-method pearson,Partition,Partition-method
Peirce Indexpeirce peirce,PairCoefficients,missing-method peirce,Partition,Partition-method
Compute the projection number of two partitionsprojectionNumber
Rand IndexrandIndex randIndex,PairCoefficients,missing-method randIndex,Partition,Partition-method
Make comparison measures usable with any vectorsregisterPartitionVectorSignatures
Rogers & Tanimoto IndexrogersTanimoto rogersTanimoto,PairCoefficients,missing-method rogersTanimoto,Partition,Partition-method
Russel & Rao IndexrusselRao russelRao,PairCoefficients,missing-method russelRao,Partition,Partition-method
RV CoefficientrvCoefficient rvCoefficient,PairCoefficients,missing-method rvCoefficient,Partition,Partition-method
Sokal & Sneath Index 1sokalSneath1 sokalSneath1,PairCoefficients,missing-method sokalSneath1,Partition,Partition-method
Sokal & Sneath Index 2sokalSneath2 sokalSneath2,PairCoefficients,missing-method sokalSneath2,Partition,Partition-method
Sokal & Sneath Index 3sokalSneath3 sokalSneath3,PairCoefficients,missing-method sokalSneath3,Partition,Partition-method
Variation of InformationvariationOfInformation variationOfInformation,Partition,Partition-method
Wallace IwallaceI wallaceI,PairCoefficients,missing-method wallaceI,Partition,Partition-method
Wallace IIwallaceII wallaceII,PairCoefficients,missing-method wallaceII,Partition,Partition-method