From 51f2fe6542009e744486aac6b0691042691ac37a Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 3 Jun 2023 08:27:39 +0200 Subject: [PATCH] gnu: Add r-consrank. * gnu/packages/cran.scm (r-consrank): New variable. --- gnu/packages/cran.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 688621343e..1f6b18f7d4 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -31900,6 +31900,33 @@ (define-public r-conquer coefficients are constructed using multiplier bootstrap.") (license license:gpl3))) +(define-public r-consrank + (package + (name "r-consrank") + (version "2.1.3") + (source (origin + (method url-fetch) + (uri (cran-uri "ConsRank" version)) + (sha256 + (base32 + "0v1dr7zj2fpgncymakv5qszdrlqzvc5zxfyc3yrsj09gbm0gvyby")))) + (properties `((upstream-name . "ConsRank"))) + (build-system r-build-system) + (propagated-inputs (list r-gtools r-proxy r-rgl r-rlist r-tidyr)) + (home-page "https://www.r-project.org/") + (synopsis + "Compute median rankings according to Kemeny's axiomatic approach") + (description + "This package lets you compute the median ranking according to 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 provides some useful +utilities for deal with preference rankings, including both element-weight +Kemeny distance and correlation coefficient.") + (license license:gpl3))) + (define-public r-fastshap (package (name "r-fastshap")