votingpower: votingpower

Description Examples

Description

Implements voting power indexes and algorithms.

Examples

1
2
3
4
# The famous Nassau County Board's voting system
# [https://en.wikipedia.org/wiki/Banzhaf_power_index]
board <- create_weighted_voting_game(16, c(9, 9, 7, 3, 1, 1))
compute_bz_power(board)

dirkschumacher/votingpower.r documentation built on May 15, 2019, 8:50 a.m.