Learn R Programming

CoopGame (version 0.2.2)

stopOnInconsistentEstateAndClaimsVector: 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 Error Code

See Also

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

Examples

Run this code
# NOT RUN {
library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
consistentClaims= c(26,27,55,57)
consistentE = 110
stopOnInconsistentEstateAndClaimsVector(paramCheckResult, d=consistentClaims, E=consistentE)

# }

Run the code above in your browser using DataLab