divideTheDollarGameVector: Compute game vector for a divide-the-dollar game

Description Usage Arguments Value Author(s) References Examples

View source: R/DivideTheDollarGame.R

Description

Game vector for a divide-the-dollar game:
For further information see divideTheDollarGame

Usage

1

Arguments

n

represents the number of players

Value

Game vector for the specified divide-the-dollar game

Author(s)

Jochen Staudacher jochen.staudacher@hs-kempten.de

Johannes Anwander anwander.johannes@gmail.com

References

Jackson M.O. (2008) Social and Economic Networks, Princeton University Press, p. 413

Examples

1
2
3
4
5
6
7
8
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

CoopGame documentation built on Aug. 24, 2021, 1:07 a.m.