drawPublicGoodIndex {CoopGame}R Documentation

Draw Public Good index for 3 or 4 players

Description

drawPublicGoodIndex draws the Public Good Index of a simple game for 3 or 4 players.

Usage

drawPublicGoodIndex(
  v,
  holdOn = FALSE,
  colour = NA,
  label = TRUE,
  name = "Public Good Index"
)

Arguments

v

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

holdOn

draws in a existing plot

colour

draws the geometric object (i.e. point or convex polyhedron) with this colour, all colour names can be seen with "colors()"

label

activates the labels for the figure

name

set a name for the label

Value

None.

Author(s)

Johannes Anwander anwander.johannes@gmail.com

Jochen Staudacher jochen.staudacher@hs-kempten.de

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. (2011) "Public Goods index", Encyclopedia of Power, SAGE Publications, pp. 541–542

Examples

library(CoopGame)
v=c(0,0,0,1,1,0,1)
drawPublicGoodIndex(v)

[Package CoopGame version 0.2.2 Index]