stopOnInconsistentEstateAndClaimsVector: Parameter Function stopOnInconsistentEstateAndClaimsVector

Description Usage Arguments Error Code Ranges Author(s) See Also Examples

View source: R/ParameterChecks_CoopGame.R

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

1

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

1
2
3
4
5
library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
consistentClaims= c(26,27,55,57)
consistentE = 110
stopOnInconsistentEstateAndClaimsVector(paramCheckResult, d=consistentClaims, E=consistentE)

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