Shapley.value-methods | R Documentation |
Computes the Shapley value (n
indices) of a set
function. The set function can be given either under the form of an
object of class set.func
, card.set.func
or Mobius.set.func
.
The Shapley value is computed from the Möbius transform of a set function.
The Shapley value is computed from a cardinal set function.
The Shapley value is computed from a general set function.
L.S. Shapley (1953), A value for n
-person games,
Contributions to the theory of games, vol. 2, Annals of Mathematics
Studies, no. 28, pages 307-317, Princeton University Press, Princeton,
N. J. .
Mobius.set.func-class
,
card.set.func-class
,
set.func-class
,
Mobius-methods
.
## a set function
mu <- set.func(c(0:13/13,1,1))
## the Shapley value
Shapley.value(mu)
## the efficiency property should be satisfied
sum(Shapley.value(mu))
## a similar example using a Mobius.set.func object
a <- Mobius(mu)
Shapley.value(a)
## a similar example using a card.set.func object
mu <- upper.capacity(6)
Shapley.value(mu)
## the efficiency property should be satisfied
Shapley.value(mu)*6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.