stopOnInconsistentEstateAndClaimsVector {CoopGame}R Documentation

Parameter Function stopOnInconsistentEstateAndClaimsVector

Description

stopOnInconsistentEstateAndClaimsVector checks if sum of claims is greater or equal estate (in bankruptcy games). Calculation stops with an error message if claims vector and estate are inconsistent.

Usage

stopOnInconsistentEstateAndClaimsVector(paramCheckResult, E, d)

Arguments

paramCheckResult

list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message.

E

is the value of the estate in a bankruptcy game

d

numeric vector which contains the claims of each player in a bankruptcy game

Error Code Ranges

Error codes and messages shown to user if error on parameter check occurs

Error Code Message
1170 Estate E must be less or equal the sum of claims!

Author(s)

Jochen Staudacher jochen.staudacher@hs-kempten.de

See Also

Other ParameterChecks_CoopGame: getEmptyParamCheckResult(), stopOnInvalidAllocation(), stopOnInvalidBoolean(), stopOnInvalidClaimsVector(), stopOnInvalidCoalitionS(), stopOnInvalidDictator(), stopOnInvalidEstate(), stopOnInvalidGameVector(), stopOnInvalidGrandCoalitionN(), stopOnInvalidIndex(), stopOnInvalidLeftRightGloveGame(), stopOnInvalidNChooseB(), stopOnInvalidNumberOfPlayers(), stopOnInvalidNumber(), stopOnInvalidQuota(), stopOnInvalidVetoPlayer(), stopOnInvalidWeightVector(), stopOnParamCheckError()

Examples

library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
consistentClaims= c(26,27,55,57)
consistentE = 110
stopOnInconsistentEstateAndClaimsVector(paramCheckResult, d=consistentClaims, E=consistentE)


[Package CoopGame version 0.2.2 Index]