gt_banzhaf: Banzhaf index

Description Usage Arguments Examples

View source: R/gt_banzhaf.R

Description

Function for calculating the Banzhaf index. Done by taking all coalitions and adding +1 for decisive coalitions, -1 otherwise

Usage

1
gt_banzhaf(w, q = 0.5)

Arguments

w

Vector of voting weights

q

Threshold for voting success

Examples

1
 gt_banzhaf(w = 1:5, q=.5)

macartan/hop documentation built on Jan. 4, 2022, 9:21 p.m.