schedrules: Schedules of awards of several rules

Description Usage Arguments Details Value References See Also Examples

View source: R/schedrules.R

Description

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

Usage

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

Arguments

d

A vector of claims.

claimant

A claimant.

Rules

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

col

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

points

The number of endowment values to draw the path.

legend

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

Details

Let d, with d≥ 0, be a vector of claims and denote D=∑ di the sum of claims.

The schedules of awards of a rule R for claimant i is the function S that assigns to each 0≤ E ≤ D the value: S(E)=Ri(E,d). Therefore, the schedules of awards of a rule plots each claimants's award as a function of E.

Value

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

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

schedrule, pathawards, pathawards3, verticalruleplot

Examples

1
2
3
4
5
d=c(2,4,7,8)
claimant=2
Rules=c(Talmud,RA,AA)
col=c("red","green","blue")
schedrules(d,claimant,Rules,col)

ClaimsProblems documentation built on April 7, 2021, 9:07 a.m.