rSRD: An R package for the Sum of Ranking Differences statistical procedure
Balázs R. Sziklai, Attila Gere, Károly Héberger, Jochen Staudacher
TL;DR
This paper presents rSRD, an R package implementing Sum of Ranking Differences (SRD), a non-parametric method for comparing multiple solutions to a fixed reference using the $L_1$ distance on rank-transformed data. It package-composes data preprocessing, SRD calculation, and two validation frameworks—CRRN (permutation-based) and CVST (cross-validation with statistical tests)—into a scalable, reproducible workflow implemented partly in C++ via Rcpp. It demonstrates usage with real datasets (e.g., MEP profiles and Bundesliga statistics) and provides plotting and reference-generation utilities that enhance interpretability and applicability across domains. The work lowers barriers to SRD adoption by practitioners, supports handling of ties and flexible reference construction, and discusses practical options for time-series and large-scale problems.
Abstract
Sum of Ranking Differences (SRD) is a relatively novel, non-para-metric statistical procedure that has become increasingly popular recently. SRD compares solutions via a reference by applying a rank transformation on the input and calculating the distance from the reference in $L_1$ norm. Although the computation of the test statistics is simple, validating the results is cumbersome -- at least by hand. There are two validation steps involved. Comparison of Ranks with Random Numbers, which is a permutation-test, and cross-validation combined with statistical testing. Both options impose computational difficulties albeit different ones. The rSRD package was devised to simplify the validation process by reducing both validation steps into single function calls. In addition, the package provides various useful tools including data preprocessing and plotting. The package makes SRD accessible to a wide audience as there are currently no other software options with such a comprehensive toolkit. This paper aims to serve as a guide for practitioners by offering a detailed presentation of the features.
