Learn R Programming

CoopGame (version 0.2.2)

weightedVotingGameVector: Compute game vector for a weighted voting game (aka quota game)

Description

Game vector for a specified weighted voting game: For further information see weightedVotingGame

Usage

weightedVotingGameVector(n, w, q)

Arguments

n

represents the number of players

w

numeric vector which contains the weight of each player

q

is the quota

Value

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

References

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

Examples

Run this code
# NOT RUN {
library(CoopGame)
weightedVotingGameVector(n=3,w=c(1,2,3),q=4)

# }

Run the code above in your browser using DataLab