Learn R Programming

GameTheory (version 2.7.1)

ShapleyValue: Shapley Value Solution

Description

Calculates the Shapley value for a N-agent cooperative game.

Usage

ShapleyValue(x, Names = NULL)

Arguments

x

object of class Game

Names

Labels of the agents

Author

Sebastian Cano-Berlanga <cano.berlanga@gmail.com>

Details

Please check ShapleyShubik for an extension to voting power index.

References

Shapley L (1953). A value for n-person games. In Tucker A, Kuhn H (Eds.), Contributions to the theory of games II (pp. 307-317). Princeton University Press: Princeton NJ.

Examples

Run this code



# Begin defining the game

COALITIONS <- c(46125,17437.5,5812.5,69187.5,53812.5,30750,90000)
LEMAIRE<-DefineGame(3,COALITIONS)

# End defining the game

NAMES <- c("Investor 1","Investor 2","Investor 3")
LEMAIRESHAPLEY <- ShapleyValue(LEMAIRE,NAMES)
summary(LEMAIRESHAPLEY)

Run the code above in your browser using DataLab