divideTheDollarGameVector {CoopGame} | R Documentation |
Game vector for a divide-the-dollar game:
For further information see divideTheDollarGame
divideTheDollarGameVector(n)
n |
represents the number of players |
Game vector for the specified divide-the-dollar game
Jochen Staudacher jochen.staudacher@hs-kempten.de
Johannes Anwander anwander.johannes@gmail.com
Jackson M.O. (2008) Social and Economic Networks, Princeton University Press, p. 413
library(CoopGame)
divideTheDollarGameVector(n=3)
library(CoopGame)
(v <- divideTheDollarGameVector(n=4))
#Output:
# [1] 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1