
Last chance! 50% off unlimited learning
Sale ends in
For each claimant, it plots a vertical line with his claim and a point on the awards vector of the chosen rules.
verticalruleplot(E, d, Rules, col = NULL, legend = TRUE)
This function represents the claims vector and the awards vector assigned by several rules as vertical segments.
The endowment.
The vector of claims
The rules: AA, APRO, CE, CEA, CEL, AV, DT, MO, PIN, PRO, RA, Talmud, or RTalmud.
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").
A logical value. The colour legend is shown if legend=TRUE
.
Let
A vector
A rule is a function that assigns to each claims problem
The formal definitions of the main rules are given in the corresponding function help.
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.
allrules, pathawards, pathawards3, schedrule, schedrules.
E=10
d=c(2,4,7,8)
Rules=c(Talmud,RA,AA)
col=c("red","green","blue")
verticalruleplot(E,d,Rules,col)
Run the code above in your browser using DataLab