Learn R Programming

CoopGame (version 0.2.2)

publicGoodIndex: Compute Public Good index

Description

Calculates the Public Good index (aka Holler index) for a specified simple game.

Usage

publicGoodIndex(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 vector containing the Public Good index

References

Holler M.J. and Packel E.W. (1983) "Power, luck and the right index", Zeitschrift fuer Nationaloekonomie 43(1), pp. 21--29

Holler M.J. (1982) "Forming coalitions and measuring voting power", Political Studies 30(2), pp. 262--271

Holler M. (2011) "Public Goods index", Encyclopedia of Power, SAGE Publications, pp. 541--542

Examples

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

# }
# NOT RUN {
#Example from Holler (2011) illustrating paradox of weighted voting
library(CoopGame)
v=weightedVotingGameVector(n=5,w=c(35,20,15,15,15), q=51)
publicGoodIndex(v) 
#[1] 0.2666667 0.1333333 0.2000000 0.2000000 0.2000000
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab