Last data update: 2014.03.03

R: Transferable Utility Game
DefineGameR Documentation

Transferable Utility Game

Description

Definition of a Transferable-Utility Game

Usage

DefineGame(n, V)

Arguments

n

Number of agents

V

Coalition values in lexicographic order

Author(s)

Sebastian Cano-Berlanga <cano.berlanga@gmail.com>

Examples


Lemaire<-DefineGame(3,c(46125,17437.5,5812.5,69187.5,53812.5,30750,90000))
summary(Lemaire)

# Characteristic form of the game 
# Number of agents: 3 
# Coaliton Value(s) 

#        v(i)
# 1   46125.0
# 2   17437.5
# 3    5812.5
# 12  69187.5
# 13  53812.5
# 23  30750.0
# 123 90000.0


Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(GameTheory)
Loading required package: lpSolveAPI
Loading required package: combinat

Attaching package: 'combinat'

The following object is masked from 'package:utils':

    combn

Loading required package: gtools
Loading required package: ineq
Loading required package: kappalab
Loading required package: lpSolve
Loading required package: quadprog
Loading required package: kernlab

Attaching package: 'kappalab'

The following object is masked from 'package:ineq':

    entropy

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/GameTheory/DefineGame.Rd_%03d_medium.png", width=480, height=480)
> ### Name: DefineGame
> ### Title: Transferable Utility Game
> ### Aliases: DefineGame
> 
> ### ** Examples
> 
> 
> Lemaire<-DefineGame(3,c(46125,17437.5,5812.5,69187.5,53812.5,30750,90000))
> summary(Lemaire)

Characteristic form of the game 

Number of agents: 3 

Coaliton Value(s) 

       v(i)
1   46125.0
2   17437.5
3    5812.5
12  69187.5
13  53812.5
23  30750.0
123 90000.0

> 
> # Characteristic form of the game 
> # Number of agents: 3 
> # Coaliton Value(s) 
> 
> #        v(i)
> # 1   46125.0
> # 2   17437.5
> # 3    5812.5
> # 12  69187.5
> # 13  53812.5
> # 23  30750.0
> # 123 90000.0
> 
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>