Learn R Programming

CoopGame (version 0.2.2)

rawBanzhafValue: Compute raw Banzhaf Value

Description

raw Banzhaf Value, i.e. the Banzhaf Value without the division by the scaling factor \(2^{(n-1)}\)

Usage

rawBanzhafValue(v)

Arguments

v

Numeric vector of length 2^n - 1 representing the values of the coalitions of a TU game with n players

Value

The return value is a numeric vector which contains the raw Banzhaf value for each player.

References

Chakravarty S.R., Mitra M. and Sarkar P. (2015) A Course on Cooperative Game Theory, Cambridge University Press, pp. 118--119

Examples

Run this code
# NOT RUN {
library(CoopGame)
v = c(0,0,0,1,1,2,5)
rawBanzhafValue(v)

# }
# NOT RUN {
library(CoopGame)
v = c(0,0,0,2,2,3,5)
rawBanzhafValue(v)
#[1] 6 8 8
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab