dictatorGame: Construct a dictator game

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

View source: R/DictatorGame.R

Description

Create a list containing all information about a specified dictator game:
Any coalitions including the dictator receive coalition value 1. All the other coalitions, i.e. each and every coalition not containing the dictator, receives coalition value 0.
Note that dictator games are always simple games.

Usage

1
dictatorGame(n, dictator)

Arguments

n

represents the number of players

dictator

Number of the dictator

Value

A list with three elements representing the dictator game (n, dictator, Game vector v)

Related Functions

dictatorGameValue, dictatorGameVector

Author(s)

Johannes Anwander anwander.johannes@gmail.com

Jochen Staudacher jochen.staudacher@hs-kempten.de

References

Peters H. (2015) Game Theory: A Multi-Leveled Approach, 2nd Edition, Springer, p. 295

Maschler M., Solan E. and Zamir S. (2013) Game Theory, Cambridge University Press, p. 764

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(CoopGame) 
dictatorGame(n=3,dictator=2)


library(CoopGame) 
dictatorGame(n=4,dictator=2)
#Output:
#$n
#[1] 4

#$dictator
#[1] 2

#$v
#[1] 0 1 0 0 1 0 0 1 1 0 1 1 0 1 1

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