Learn R Programming

CoopGame (version 0.2.2)

dictatorGameVector: Compute game vector for a dictator game

Description

Game vector for a dictator game: For further information see dictatorGame

Usage

dictatorGameVector(n, dictator)

Arguments

n

represents the number of players

dictator

Number of the dictator

Value

Game vector where each element contains 1 if dictator is involved, 0 otherwise.

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

Run this code
# NOT RUN {
library(CoopGame)
dictatorGameVector(n=3,dictator=2)

# }

Run the code above in your browser using DataLab