shapleyValue

Shapley value of a cooperative game

Given a cooperative game, the shapleyValue function
computes its Shapley value.

Usage

shapleyValue(n, S = NULL, v)

Arguments

n

number of players in the cooperative game.

S

vector with all the possible coalitions. If none
has been specified the function generates it
automatically.

v

vector with the characteristic function of the
cooperative game.

Details

The Shapley value is a solution concept in cooperative game
theory proposed by Lloyd Shapley in 1953. It is obtained as
the average of the marginal contributions of the players
associated with all the posible orders of the players.

Value

The shapleyValue functions returns a matrix with all
the marginal contributions of the players
(contributions) and a vector with the Shapley value
(value).