divideTheDollarGame: Construct a divide-the-dollar game

Description Usage Arguments Value Related Functions Author(s) References Examples

View source: R/DivideTheDollarGame.R

Description

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.

Usage

1

Arguments

n

represents the number of players

Value

A list with two elements representing the divide-the-dollar game (n, Game vector v)

Related Functions

divideTheDollarGameValue, divideTheDollarGameVector

Author(s)

Jochen Staudacher jochen.staudacher@hs-kempten.de

Johannes Anwander anwander.johannes@gmail.com

References

Jackson M.O. (2008) Social and Economic Networks, Princeton University Press, p. 413

Examples

 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

CoopGame documentation built on Aug. 24, 2021, 1:07 a.m.