View source: R/get_preferences_utils.R
get_proposer_rank | R Documentation |
Rank preferences for an arbitrary proposer and rejecter, based on distance (i.e., difference) between them
get_proposer_rank(proposer, rejecter, window_size)
proposer |
A vector containing indices of transitions for the proposing (optimal) party |
rejecter |
A vector containing indices of transitions for the rejecting (pessimal) party |
window_size |
The maximum number of indices that are allowed to separate a predicted and reference transition, before the two are considered incompatible |
A matrix with length(proposer)
columns and
length(rejecter)
rows, giving ordered preferences for the proposer,
based on the absolute difference between the ith proposer index and the
rejecter indices, where differences larger than window_size
are
treated as omitted preferences, i.e., non-possibilities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.