costSharingGameValue: Compute value of a coalition for a cost game

Description Usage Arguments Value Author(s) References Examples

View source: R/CostSharingGame.R

Description

Coalition value for a cost sharing game:
For further information see costSharingGame

Usage

1

Arguments

S

numeric vector with coalition of players

Costs

A vector containing the costs each coalition has to pay

Value

Cost savings of coalition S as compared to singleton coalitions

Author(s)

Johannes Anwander anwander.johannes@gmail.com

Jochen Staudacher jochen.staudacher@hs-kempten.de

References

Peleg B. and Sudhoelter P. (2007) Theory of cooperative games, 2nd Edition, Springer, pp. 14–16

Maschler M., Solan E. and Zamir S. (2013) Game Theory, Cambridge University Press, pp. 667–668

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
library(CoopGame)
costSharingGameValue(S=c(1,2), Costs=c(2,2,2,3,3,3,4))


#Example with 3 students sharing an appartment:
#-------------------------------
#| costs     |  A  |  B  |  C  |
#- -----------------------------
#|single     | 300 | 270 | 280 |
#|appartment |     |     |     |
#-------------------------------
#
#Appartment for 2 persons => costs: 410
#Appartment for 3 persons => costs: 550

#Savings when A and B share appartment
library(CoopGame)
costSharingGameValue(S=c(1,2),Costs=c(300,270,280,410,410,410,550))
#Output: 
#[1] 160

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