Description Usage Arguments Value Author(s) References Examples
View source: R/JohnstonConcept.R
johnstonIndex calculates the Johnston index for a simple game.
1 |
v |
Numeric vector of length 2^n - 1 representing the values of the coalitions of a TU game with n players |
Johnston index for a specified simple game
Johannes Anwander anwander.johannes@gmail.com
Michael Maerz
Jochen Staudacher jochen.staudacher@hs-kempten.de
Johnston R.J. (1978) "On the measurement of power: Some reactions to Laver", Environment and Planning A, pp. 907–914
Chakravarty S.R., Mitra M. and Sarkar P. (2015) A Course on Cooperative Game Theory, Cambridge University Press, p. 124
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(CoopGame)
johnstonIndex(c(0,0,0,1,0,0,1))
#player 1 has 3 votes
#player 2 has 2 votes
#player 3 has 1 vote
#majority for the decision is 4 (quota)
library(CoopGame)
#function call generating the game vector:
v <- weightedVotingGameVector(n = 3, w = c(3,2,1), q = 4)
johnstonIndex(v)
#[1] 0.6666667 0.1666667 0.1666667
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.