banzhaf_owen {TUvalues} | R Documentation |
Banzhaf-Owen value
Description
Calculate the Banzhaf-Owen value
Usage
banzhaf_owen(
characteristic_func,
union,
method = "exact",
n_rep = 10000,
n_players = 0,
replace = TRUE
)
Arguments
characteristic_func |
The valued function defined on the subsets of the number of players |
union |
List of vectors indicating the a priori unions between the players |
method |
Method used to calculate the Owen value. Valid methods are:
|
n_rep |
Only used if |
n_players |
Only used if |
replace |
should sampling be with replacement? |
Value
The Banzhaf-Owen value for each player
Examples
characteristic_func <- c(0,0,0,0,30,30,40,40,50,50,60,70,80,90,100)
union <- list(c(1,3),c(2),c(4))
banzhaf_owen(characteristic_func, union)
banzhaf_owen(characteristic_func, union, method = "appro", n_rep = 4000)
[Package TUvalues version 1.0.0 Index]