| owen | R Documentation |
Calculate the Owen value
owen(
characteristic_func,
union,
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
|
union |
List of vectors indicating the a priori unions between the players. |
n_players |
Only used if |
method |
Method used to calculate the Owen value. Valid methods are:
|
n_rep |
Only used if |
echo |
Only used if |
The Owen value for each player.
Saavedra-Nieves, A., García-Jurado, I., & Fiestras-Janeiro, M. G. (2018). Estimation of the Owen value based on sampling. In The mathematics of the uncertain: A tribute to Pedro Gil (pp. 347-356). Cham: Springer International Publishing.
n <- 10
v <- function(coalition) {
if (length(coalition) > n/2) {
return(1)
} else {
return(0)
}
}
u <- lapply(1:(n/2), function(i) c(2*i - 1, 2*i))
owen(v, union = u, method = "appro", n_rep = 4000, n_players = n)
characteristic_func <- c(1,1,2,1,2,2,2)
union <- list(c(1,2),c(3))
owen(characteristic_func, union)
owen(characteristic_func, union, method = "appro", n_rep = 4000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.