Description Usage Arguments Value Related Functions Author(s) References Examples
View source: R/DivideTheDollarGame.R
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.
1 |
n |
represents the number of players |
A list with two elements representing the divide-the-dollar game (n, Game vector v)
divideTheDollarGameValue, divideTheDollarGameVector
Jochen Staudacher jochen.staudacher@hs-kempten.de
Johannes Anwander anwander.johannes@gmail.com
Jackson M.O. (2008) Social and Economic Networks, Princeton University Press, p. 413
1 2 3 4 5 6 7 8 9 10 11 12 | library(CoopGame)
divideTheDollarGame(n=3)
#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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.