Learn R Programming

ClaimsProblems (version 1.0.0)

schedrules: Schedules of awards of several rules

Description

This function returns the graphical representation of the schedules of awards of different rules for a claims vector and a given claimant.

Usage

schedrules(d, claimant, Rules, col = NULL, points = 201, legend = TRUE)

Value

The graphical representation of the schedules of awards of the rules for the claims vector and the same claimant.

Arguments

d

A vector of claims.

claimant

A claimant.

Rules

The rules: AA, APRO, CE, CEA, CEL, AV, DT, MO, PIN, PRO, RA, Talmud, RTalmud.

col

The colours. If col = NULL then the sequence of default colours is: c("red", "blue", "green", "yellow", "pink", "orange", "coral4", "darkgray", "burlywood3", "black", "darkorange", "darkviolet").

points

The number of endowment values to draw the path.

legend

A logical value. The colour legend is shown if legend = TRUE.

Details

Let \(N=\{1,\ldots,n\}\) be the set of claimants, \(d\in \mathbb{R}_+^N\) a vector of claims and denote by \(D=\sum_{i\in N} d_i\) the sum of the claims.

The schedules of awards of a rule \(\mathcal{R}\) for claimant \(i\) is the function \(S\) that assigns to each \(E\in [0,D]\) the value: \(S(E)=\mathcal{R}_i(E,d)\in \mathbb{R}\). Therefore, the schedules of awards of a rule plots each claimants's award as a function of \(E\).

References

Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.

See Also

pathawards, pathawards3, schedrule, verticalruleplot.

Examples

Run this code
d=c(2,4,7,8)
claimant=2
Rules=c(Talmud,RA,AA)
col=c("red","green","blue")
schedrules(d,claimant,Rules,col)

Run the code above in your browser using DataLab