Description Usage Arguments Value Related Functions Author(s) References Examples
Create a list containing
all information about a specified glove game:
We have a set of players L
with left-hand gloves and
a set of players R
with right-hand gloves.
The worth of a coalition S
equals the number of
pairs of gloves the members of S
can make.
Note that the sets L
and R
have to be disjoint.
1 | gloveGame(n, L, R)
|
n |
represents the number of players |
L |
numeric vector of players owning one left-hand glove each |
R |
numeric vector of players owning one right-hand glove each |
A list with four elements representing the glove game (n, L, R, Game vector v)
gloveGameValue, gloveGameVector
Jochen Staudacher jochen.staudacher@hs-kempten.de
Peters H. (2015) Game Theory: A Multi-Leveled Approach, 2nd Edition, Springer, pp. 155–156
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | library(CoopGame)
gloveGame(n=3,L=c(1,2), R=c(3))
#Example with four players:
#players 1, 2 and 4 hold a left-hand glove each,
#player 3 holds a right-hand glove.
library(CoopGame)
(vv<-gloveGame(n=4,L=c(1,2,4), R=c(3)))
#$n
#[1] 3
#$L
#[1] 1 2 4
#
#$R
#[1] 3
#
#$v
#[1] 0 0 0 0 0 1 0 1 0 1 1 0 1 1 1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.