Learn R Programming

CoopGame (version 0.2.2)

getCriticalCoalitionsOfPlayer: Compute critical coalitions of a player for simple games

Description

getCriticalCoalitionsOfPlayer identifies all coalitions for one player in which that player is critical (within a simple game). These coalitions are characterized by the circumstance that without this player the other players generate no value (then also called a losing coalition) - therefore this player is also described as a critical player.

Usage

getCriticalCoalitionsOfPlayer(player, v)

Arguments

player

represents the observed player

v

Numeric vector of length 2^n - 1 representing the values of the coalitions of a TU game with n players

Value

A data frame containing all minimal winning coalitions for one special player

References

Deegan J. and Packel E.W. (1978) "A new index of power for simple n-person games", Int. Journal of Game Theory 7(2), pp. 151--161

Examples

Run this code
# NOT RUN {
library(CoopGame)
getCriticalCoalitionsOfPlayer(2,v=c(0,0,0,0,0,1,1))

# }
# NOT RUN {
library(CoopGame)
v=c(0,1,0,1,0,1,1)

#Get coalitions where player 2 is critical:
getCriticalCoalitionsOfPlayer(2,v)
#Output are all coalitions where player 2 is involved.
#Observe that player 2 is dictator in this game.
#
#     V1 V2 V3 cVal bmRow
#  2  0  1  0    1     2
#  4  1  1  0    1     4
#  6  0  1  1    1     6
#  7  1  1  1    1     7
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab