
Last chance! 50% off unlimited learning
Sale ends in
Create a list containing
all information about a specified divide-the-dollar game:
Returns a divide-the-dollar game with n
players:
This sample game is taken from the book 'Social and Economic Networks' by Matthew O. Jackson (see p. 413 ff.).
If coalition S
has at least n/2
members it generates a value of 1
, otherwise 0
.
Note that divide-the-dollar games are always simple games.
divideTheDollarGame(n)
represents the number of players
A list with two elements representing the divide-the-dollar game (n, Game vector v)
Jackson M.O. (2008) Social and Economic Networks, Princeton University Press, p. 413
# NOT RUN {
library(CoopGame)
divideTheDollarGame(n=3)
# }
# NOT RUN {
#Example with four players
library(CoopGame)
(vv<-divideTheDollarGame(n=4))
#$n
#[1] 4
#$v
#[1] 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab