Description Usage Arguments Value Related Functions Author(s) References Examples
View source: R/WeightedVotingGame.R
Create a list containing
all information about a specified weighted voting game:
For a weighted voting game we receive a game vector
where each element contains 1
if the sum of
the weights of coalition S
is greater or equal than
quota q
, else 0
.
Note that weighted voting games are always simple games.
1 | weightedVotingGame(n, w, q)
|
n |
represents the number of players |
w |
numeric vector which contains the weight of each player |
q |
is the quota |
A list with four elements representing the weighted voting game (n, w, q, Game vector v)
weightedVotingGameValue, weightedVotingGameVector
Jochen Staudacher jochen.staudacher@hs-kempten.de
Peleg B. (2002) "Game-theoretic analysis of voting in committees". in: Handbook of Social Choice and Welfare 1, pp. 195–201
Peleg B. and Sudhoelter P. (2007) Theory of cooperative games, 2nd Edition, Springer, p. 17
Maschler M., Solan E. and Zamir S. (2013) Game Theory, Cambridge University Press, pp. 825–831
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | library(CoopGame)
weightedVotingGame(n=3,w=c(1,2,3),q=4)
library(CoopGame)
weightedVotingGame(n=4,w=c(1,2,3,4),q=5)
#Output:
#$n
#[1] 4
#$w
#[1] 1 2 3 4
#
#$q
#[1] 5
#
#$v
#[1] 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.