Learn R Programming

⚠️There's a newer version (1.0-4) of this package.Take me there.

matchingMarkets

Analysis of Stable Matchings in R

Functions

matchingMarkets comes with two estimators:

  • stabit: Implements a Bayes estimator that corrects for sample selection in matching markets when the selection process is a one-sided matching game (i.e. group formation).

  • stabit2: Implements the Bayes estimator for a two-sided matching game (i.e. the college admissions and stable marriage problems).

and three algorithms that can be used to simulate matching data:

  • hri: Constraint model for the hospital/residents problem. Finds all stable matchings in two-sided matching markets. Implemented for both the stable marriage problem (one-to-one matching) and the hospital/residents problem, a.k.a. college admissions problem (many-to-one matching).

  • sri: Constraint model for the stable roommates problem. Finds all stable matchings in the roommates problem (one-sided matching market).

  • ttc: Top-Trading-Cycles Algorithm. Finds stable matchings in the housing market problem.

Functions hri and sri are based on the Prosser (2014) constraint encoding model. They allow for incomplete preference lists (some agents find certain agents unacceptable) and unbalanced instances (unequal number of agents on both sides).

Installation

To get the latest stable version from CRAN:

install.packages("matchingMarkets")
library(matchingMarkets)

Under Linux, the dependency package gmp requires that you have GNU MP (> 4.1.4) installed, see http://gmplib.org.

To get the most recent development version from GitHub:

install.packages("devtools")
devtools::install_github("thiloklein/matchingMarkets")
library(matchingMarkets)

or from R-Forge:

install.packages("matchingMarkets", repos="http://R-Forge.R-project.org")
library(matchingMarkets)

Documentation

Package documentation and vignette are available from the CRAN page. An application of the estimator in function stabit is in Klein (2015).

Copy Link

Version

Install

install.packages('matchingMarkets')

Monthly Downloads

787

Version

0.3-1

License

GPL (>= 2) | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Thilo Klein

Last Published

August 21st, 2016

Functions in matchingMarkets (0.3-1)

stabit2

Structural Matching Model to correct for sample selection bias in two-sided matching markets
mce

MC Experiments
baac00

Townsend Thai Project BAAC Annual Resurvey, 2000
stabsim

Simulate individual-level data for one-sided matching markets
matchingMarkets-package

An R package for the analysis of stable matchings.
mfx

Marginal effects for probit and matching models
sri

Constraint model to produce all stable matchings in the stable roommates problem with incomplete lists
khb

Karlson-Holm-Breen method for comparing probit coefficients
klein15b

Results of Monte Carlo Simulations in Klein (2015b).
klein15a

MCMC results in Klein (2015a).
ttc

Top-Trading-Cycles Algorithm for the house allocation problem
stabsim2

Simulate data for two-sided matching markets