Learn R Programming

PAutilities (version 1.1.0)

get_proposer_rank: 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)

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.

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