| myerson | R Documentation |
Calculate the Myerson value in a communication game.
myerson(
characteristic_func,
graph_edges,
n_players = 0,
method = "exact",
n_rep = 1000,
echo = TRUE
)
characteristic_func |
The characteristic function of the game. It can be
a numeric vector with the value of every coalition, in the order given by
|
graph_edges |
Edges of the communication graph of the game: a
|
n_players |
Only used if |
method |
Method used to calculate the Myerson value. Valid methods are:
|
n_rep |
Only used if |
echo |
Only used if |
The Myerson value for each player.
Myerson, R. B. (1977). Graphs and Cooperation in Games. Mathematics of Operations Research, 2(3), 225–229. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1287/moor.2.3.225")}
Castro, J., Gómez, D., & Tejada, J. (2009). Polynomial calculation of the Shapley value based on sampling. Computers & operations research, 36(5), 1726-1730.
characteristic_func <- c(
1, 2, 0, 3,
3, 1, 4, 2, 5, 3,
3, 6, 4, 5,
15
)
graph_edges <- list(c(1, 2), c(2, 4))
myerson(characteristic_func, graph_edges, method = "exact")
myerson(characteristic_func, graph_edges, method = "appro", n_rep = 1000)
v <- function(S) {
if (length(S) == 2) {
return(1)
}
return(0)
}
n <- 3
graph_edges <- list(c(1, 2))
myerson(v, graph_edges, n_players = n, method = "exact")
myerson(v, graph_edges, n_players = n, method = "appro", n_rep = 2000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.