Learn R Programming

CoopGame (version 0.2.2)

drawDeeganPackelIndex: draw Deegan-Packel index for 3 or 4 players

Description

drawDeeganPackelIndex draws the Deegan-Packel index for 3 or 4 players.

Usage

drawDeeganPackelIndex(
  v,
  holdOn = FALSE,
  colour = NA,
  label = TRUE,
  name = "Deegan Packel 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.

References

Deegan J. and Packel E.W. (1978) "A new index of power for simple n-person games", Int. Journal of Game Theory 7(2), pp. 151--161

Holler M.J. and Illing G. (2006) "Einfuehrung in die Spieltheorie". 6th Edition (in German), Springer, pp. 323--324

Examples

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

Run the code above in your browser using DataLab