Learn R Programming

matchingR (version 1.0.1)

validateInputs: Input validation

Description

This function parses and validates the arguments that are passed on to the functions one2one, one2many, and many2one. In particular, it checks if user-defined preference orders are complete. If user-defined orderings are given in terms of R indices (starting at 1), then these are transformed into C++ indices (starting at zero).

Usage

validateInputs(proposerUtils, reviewerUtils, proposerPref, reviewerPref)

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
proposerPref
is a matrix with the preference order of the proposing side of the market (only required when proposerUtils is not provided)
reviewerPref
is a matrix with the preference order of the courted side of the market (only required when reviewerUtils is not provided)

Value

  • a list containing proposerUtils, reviewerUtils, proposerPref (reviewerPref are not required after they are translated into reviewerUtils).