Learn R Programming

ConsRank (version 3.0)

Compute the Median Ranking(s) According to the Kemeny's Axiomatic Approach

Description

Compute the median ranking according to the Kemeny's axiomatic approach. Rankings can or cannot contain ties, rankings can be both complete or incomplete. The package contains both branch-and-bound algorithms and heuristic solutions recently proposed. The searching space of the solution can either be restricted to the universe of the permutations or unrestricted to all possible ties. The package also provide some useful utilities for deal with preference rankings, including both element-weight Kemeny distance and correlation coefficient. This release includes also the median constrained bucket order algorithm. This release removes the functions previously declared as deprecated. These functions are now defunct and no longer available in the package. Essential references: Emond, E.J., and Mason, D.W. (2002) ; D'Ambrosio, A., Amodio, S., and Iorio, C. (2015) ; Amodio, S., D'Ambrosio, A., and Siciliano R. (2016) ; D'Ambrosio, A., Mazzeo, G., Iorio, C., and Siciliano, R. (2017) ; Albano, A., and Plaia, A. (2021) ; D'Ambrosio, A., Iorio, C., Staiano, M. and Siciliano, R (2019) .

Copy Link

Version

Install

install.packages('ConsRank')

Monthly Downloads

5,583

Version

3.0

License

GPL-3

Maintainer

Antonio DAmbrosio

Last Published

February 25th, 2026

Functions in ConsRank (3.0)

kemenydesign_cpp

Kemeny design matrix (C++ implementation)
kemenydesign

Auxiliary function
iw_kemenyd

Item-weighted Kemeny distance
consrank

Branch-and-bound and heuristic algorithms to find consensus (median) ranking according to the Kemeny's axiomatic approach
kemenyscore

Score matrix according Kemeny (1962)
rank2order

Given a rank, it is transformed to a ordering
partitions

Generate partitions of n items constrained into k non empty subsets
reordering

Given a vector (or a matrix), returns an ordered vector (or a matrix with ordered vectors)
order2rank

Given an ordering, it is transformed to a ranking
mcbo

Median Constrained Bucket Order (MCBO)
polyplotnew

Plot rankings on a permutation polytope of 3 or 4 objects
iwcombinpmatr

Item-weighted Combined input matrix of a data set
polyplot

Plot rankings on a permutation polytope of 3 o 4 objects containing all possible ties
iw_tau_x

Item-weighted TauX rank correlation coefficient
scorematrix

Score matrix according Emond and Mason (2002)
kemenyd

Kemeny distance
stirling2

Stirling numbers of the second kind
iwquickcons

The item-weighted Quick algorithm to find up to 4 solutions to the consensus ranking problem
sports

sports data
univranks

Generate the universe of rankings
tabulaterows

Frequency distribution of a sample of rankings
tau_x

TauX (tau exstension) rank correlation coefficient
APAFULL

American Psychological Association dataset, full version
combinpmatr

Combined input matrix with C++ optimization
German

German political goals
Idea

Idea data set
BU

Brook and Upton data
APAred

American Psychological Association dataset, reduced version with only full rankings
EMD

Emond and Mason data
USAranks

USA rank data
ConsRank-defunct

Defunct functions in ConsRank
ConsRank-package

Median Ranking Approach According to the Kemeny's Axiomatic Approach