Learn R Programming

CoopGame (version 0.2.2)

apexGameValue: Compute value of a coalition for an apex game

Description

Coalition value for an apex game: For further information see apexGame

Usage

apexGameValue(S, n, apexPlayer)

Arguments

S

numeric vector with coalition of players

n

represents the number of players

apexPlayer

specifies the number of the apex player

Value

value of coalition S

References

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

Examples

Run this code
# NOT RUN {
library(CoopGame)
apexGameValue(c(1,2),3,2)

# }
# NOT RUN {
library(CoopGame)
apexGameValue(c(1,2,3,4),4,3)
# Output:
# [1] 1
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab