Learn R Programming

TUvalues (version 0.1.0)

banzhaf_appro_func: Banzhaf Index (approximation)

Description

Calculate the approximated Banzhaf Index based on sampling

Usage

banzhaf_appro_func(value_func, n_rep, n_players, replace = TRUE)

Value

The Banzhaf Index for each player

Arguments

value_func

The valued function defined on the subsets of the number of players

n_rep

The number of iterations to perform in the approximated calculation

n_players

Only used if value_func is a function. The number of players in the game.

replace

should sampling be with replacement?