apexGame: Construct an apex game

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

View source: R/ApexGame.R

Description

Create a list containing all information about a specified apex game:
A coalition can only win (and hence obtain the value 1) if it
a) contains both the apex player and one additional player
or
b) contains all players except for the apex player.
Any non-winning coalitions obtain the value 0.
Note that apex games are always simple games.

Usage

1
apexGame(n, apexPlayer)

Arguments

n

represents the number of players

apexPlayer

specifies the number of the apex player

Value

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

Related Functions

apexGameValue, apexGameVector

Author(s)

Jochen Staudacher jochen.staudacher@hs-kempten.de

Johannes Anwander anwander.johannes@gmail.com

References

Peters H. (2015) Game Theory: A Multi-Leveled Approach, 2nd Edition, Springer, pp. 164–165

Examples

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


library(CoopGame)
#Example with four players, apex player is number 3
(vv<-apexGame(n=4,apexPlayer=3))
#$n
#[1] 4

#$apexPlayer
#[1] 4

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

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