sortIndex function

Sort indices of a matrix within a column

Sort indices of a matrix within a column

Within each column of a matrix, this function returns the indices of each element in descending order

sortIndex(u)

Arguments

  • u: is the input matrix with cardinal preferences

Returns

a matrix with sorted indices (the agents' ordinal preferences)

  • Maintainer: Jan Tilly
  • License: GPL (>= 2)
  • Last published: 2021-05-25