Social Ranking Solutions for Power Relations on Coalitions
Overview
The notion of power index has been widely used in literature to evaluate the influence of individual players (e.g., voters, political parties, nations, stockholders, etc.) involved in a collective decision situation like an electoral system, a parliament, a council, a management board, etc., where players may form coalitions. Traditionally this ranking is determined through numerical evaluation. More often than not however only ordinal data between coalitions is known. The package 'socialranking' offers a set of solutions to rank players based on a transitive ranking between coalitions, including through CP-Majority, ordinal Banzhaf or lexicographic excellence solution summarized by Tahar Allouche, Bruno Escoffier, Stefano Moretti and Meltem Öztürk (2020, doi:10.24963/ijcai.2020/3).
- Added
generateRandomPowerRelation() - Added S3 class
DualLexcelScores
From NEWS.md in the release
Install
Health
NOTEDESCRIPTION meta-informationr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘PowerRelation.R’ ‘SocialRanking.R’ ‘copeland.R’ ‘doRanking.Rd’
‘elementLookup.Rd’ ‘generator.R’ ‘makePowerRelationMonotonic.R’r-devel-windows-x86_64, r-oldrel-windows-x86_64, r-release-windows-x86_64
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
'PowerRelation.R' 'SocialRanking.R' 'copeland.R' 'doRanking.Rd'
'elementLookup.Rd' 'generator.R' 'makePowerRelationMonotonic.R'- NOTE13 NOTENow
- NOTE12 NOTE2026-04-25
- ERROR2 OK, 11 NOTE, 1 ERROR2026-03-30
- NOTE3 OK, 11 NOTE2026-03-10
Documentation
- Help pages
- 28 (1 internal)includes a package overview page
- Examples that run
- 100%25 run in a plain check
- Exported functions with examples
- 93%
- Documented parameters
- 93%
- Return-value docs
- 96%
- Help pages citing references
- 39% with a bibliography file
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/jassler/socialranking on 2026-10-21.
GitHub Pages site last deployed 2025-03-14 · The repository has a site deploy workflow
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.2.0Latest
- RR 4.4.0 released · 2024-04-24
- 1.1.02023-11-29 · diff ↗ ·
added 20 exports
%>=L1%, %>=L2%, %>=LP%, %>=LPS%, %>L1%, %>L2%, %>LP%, %>LPS%, L2Ranking, L2Scores, LPRanking, LPSRanking, LPSScores, LPScores, lexcel2Ranking, lexcel2Scores, lexcelPRanking, lexcelPSRanking, lexcelPSScores, lexcelPScores - 1.0.12023-08-23 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.0.02023-03-13 · diff ↗ ·
removed 1 export
SocialRankingSolutionadded 12 exports
L1Ranking, L1Scores, SocialRanking, appendMissingCoalitions, as.PowerRelation, coalitionLookup, elementLookup, generateNextPartition, lexcel1Ranking, lexcel1Scores, makePowerRelationMonotonic, powerRelationGenerator - 0.1.22022-10-28 · diff ↗
- 0.1.12022-04-25 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.1.02022-03-30
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-03-30
- Total releases
- 7 / 4 yrs
- License
- GPL-3 OSI
- Download size
- 896 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("socialranking")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.