get_proposer_rank: Rank preferences for an arbitrary proposer and rejecter,...

View source: R/get_preferences_utils.R

get_proposer_rankR Documentation

Rank preferences for an arbitrary proposer and rejecter, based on distance (i.e., difference) between them

Description

Rank preferences for an arbitrary proposer and rejecter, based on distance (i.e., difference) between them

Usage

get_proposer_rank(proposer, rejecter, window_size)

Arguments

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

Value

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.


PAutilities documentation built on Aug. 21, 2022, 9:05 a.m.