Learn R Programming

matchingR (version 1.0.1)

checkStability: Check if a matching is stable

Description

This function checks if a given matching is stable for a particular set of preferences. This function can check if a given check one-to-one, one-to-many, or many-to-one matching is stable.

Usage

checkStability(proposerUtils, reviewerUtils, proposals, engagements)

Arguments

proposerUtils
is a matrix with cardinal utilities of the proposing side of the market
reviewerUtils
is a matrix with cardinal utilities of the courted side of the market
proposals
is a matrix that contains the id of the reviewer that a given proposer is matched to: the first row contains the id of the reviewer that is matched with the first proposer, the second row contains the id of the reviewer that is matched with the second pro
engagements
is a matrix that contains the id of the proposer that a given reviewer is matched to. The column dimension accommodates reviewers with multiple slots

Value

  • true if the matching is stable, false otherwise