Learn R Programming

CoopGame (version 0.2.2)

getPerCapitaExcessCoefficients: Compute per capita excess coefficients

Description

getPerCapitaExcessCoefficients computes the per capita excess coefficients for a specified TU game and an allocation x

Usage

getPerCapitaExcessCoefficients(v, x)

Arguments

v

Numeric vector of length 2^n - 1 representing the values of the coalitions of a TU game with n players

x

numeric vector containing allocations for each player

Value

numeric vector containing the per capita excess coefficients for every coalition

Examples

Run this code
# NOT RUN {
library(CoopGame)
getPerCapitaExcessCoefficients(c(0,0,0,60,48,30,72), c(24,24,24))

# }

Run the code above in your browser using DataLab