LPScores {socialranking} | R Documentation |
LP Ranking
Description
Calculate the scores.
Usage
LPScores(powerRelation, elements = powerRelation$elements)
LPRanking(powerRelation)
lexcelPScores(powerRelation, elements = powerRelation$elements)
lexcelPRanking(powerRelation)
Arguments
powerRelation |
A |
elements |
Vector of elements of which to calculate their scores.
By default, the scores of all elements in |
Details
Let be a set of elements,
a power relation,
and
its corresponding quotient order.
For an element , construct a matrix
with
columns and
rows.
Whereas each column
represents an equivalence class, each row
corresponds to the coalition size.
For , the social ranking solution
then ranks
strictly above
if one of the following conditions hold:
-
;
-
and there exists a row
such that:
In R
, given two matrices M_i
and M_j
, this comparison could be expressed as
# function that returns TRUE if i should be ranked strictly above j k_i <- which(M_i[1,] == 1) k_j <- which(M_j[1,] == 1) if(k_i != k_j) return(k_i < k_j) if(k_i == 1) return(FALSE) # get sum for each row # removing the first row implies that we start in row 2 sums_i <- apply(M_i[-1,seq(k_i-1)], 1, sum) sums_j <- apply(M_j[-1,seq(k_j-1)], 1, sum) # apply lexcel comparison i <- which(a != b) return(length(i) > 0 && a[i[1]] > b[i[1]])
Value
Score function returns a list of type LPScores
and length of powerRelation$elements
(unless parameter elements
is specified).
Each index contains a vector of length length(powerRelation$elements)
.
Ranking function returns corresponding SocialRanking
object.
Example
Let .
From this, we get the following three matrices:
in this context refers to the value in the second row and third column of element 2, in this case
.
In the example, will be immediately put above
and
because
and
.
Since
, we next consider the coalitions of size 2. Here, it turns out that
is equal to
.
For obvious reasons the grand coalition does not have to be considered, thus
and
are considered equally powerful by the
solution.
is a social ranking solution belonging to the family of lexicographical ranking functions.
While related to
L1Ranking()
, it incorporates the property of "standardness", stating that if the
singleton coalition , then the ranking solution
should also prefer
over
.
If , then all coalitions from size 2 and upward are inspected,
giving higher precedence to coalitions with a lower number of elements.
While this preference is similar to the
, it differs in two notable ways:
If
, then only coalitions
are considered,
From this subset of coalitions, consider the total number of coalitions
(or
) belongs to, given each coalition size. This may ignore information about the distribution of these coalitions within the different equivalence classes, which
and the slight variation
of the
solution take into account.
Alterations
The matrices as described above and in Béal S, Rémila E, Solal P (2022).
“Lexicographic solutions for coalitional rankings based on individual and collective performances.”
Journal of Mathematical Economics, 102, 102738. can be investigated with the L1Scores()
function.
For efficiency, LPScores()
discards much of the redundant information.
Instead of a matrix for each element, it returns a vector of size .
Given a score vector v
for an element i
, v[1]
is the position of the singleton coalition {i}
.
This implies that if v[1] < w[1]
, where w
is the score vector of an element j
, then i
is ranked strictly above j
.
v[2]
, v[3]
, ..., v[n]
then indicates the number of coalitions of size 2
, 3
, ..., n
that the element i
appears in.
Aliases
For better discoverability, lexcelPScores()
and lexcelPRanking()
serve as aliases for LPScores()
and LPRanking()
, respectively.
References
Béal S, Rémila E, Solal P (2022). “Lexicographic solutions for coalitional rankings based on individual and collective performances.” Journal of Mathematical Economics, 102, 102738.
See Also
Other ranking solution functions:
L1Scores()
,
L2Scores()
,
LPSScores()
,
copelandScores()
,
cumulativeScores()
,
kramerSimpsonScores()
,
lexcelScores()
,
ordinalBanzhafScores()
Examples
pr <- as.PowerRelation("(123 ~ 13 ~ 2) > (12 ~ 1 ~ 3) > (23 ~ {})")
scores <- LPScores(pr)
scores$`2`
# [1] 1 0 0
LPRanking(pr)
# 2 > 1 ~ 3
# Since L^(1) also the relation {1,2}, which ranks above {2,3}, it will place 1 above 3
L1Ranking(pr)
# 2 > 1 > 3