Skip to content

matchingMarkets

Analysis of Stable Matchings

v1.0-5 · Dec 22, 2025 · GPL (>= 2)

Description

Implements structural estimators to estimate preferences and correct for the sample selection bias of observed outcomes in matching markets. This includes one-sided matching of agents into groups (Klein, 2015) <doi:10.17863/CAM.5812> as well as two-sided matching of students to schools (Klein et al., 2024) <doi:10.1016/j.geb.2024.07.003>. The package also contains algorithms to find stable matchings in the three most common matching problems: the stable roommates problem (Irving, 1985) <doi:10.1016/0196-6774(85)90033-1>, the college admissions problem (Gale and Shapley, 1962) <doi:10.2307/2312726>, and the house allocation problem (Shapley and Scarf, 1974) <doi:10.1016/0304-4068(74)90033-0>.

Downloads

741

Last 30 days

4891st

2.7K

Last 90 days

7.3K

Last year

Trend: -23.4% (30d vs prior 30d)

CRAN Check Status

2 WARNING
2 NOTE
10 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 WARNING
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 WARNING
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (5 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is 14.7Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs  10.3Mb
WARNING r-oldrel-macos-arm64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘matching.Rnw’ using knitr_notangle
0%   10   20   30   40   50   60   70   80   90   100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
Error: processing vignette 'matching.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'matching.tex' failed.
LaTeX errors:
! LaTeX Error: File `hvfloat.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

! Emergency stop.
<read *> 
         
l.58 \usepackage
                {subcaption}^^M
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘matching.Rnw’

SUMMARY: processing the following file failed:
  ‘matching.Rnw’

Error: Vignette re-building failed.
Execution halted
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 15.3Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs  10.9Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.1Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs   1.8Mb
WARNING r-release-macos-arm64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘matching.Rnw’ using knitr_notangle
0%   10   20   30   40   50   60   70   80   90   100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
Error: processing vignette 'matching.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'matching.tex' failed.
LaTeX errors:
! LaTeX Error: File `hvfloat.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

! Emergency stop.
<read *> 
         
l.58 \usepackage
                {subcaption}^^M
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘matching.Rnw’

SUMMARY: processing the following file failed:
  ‘matching.Rnw’

Error: Vignette re-building failed.
Execution halted

Check History

WARNING 10 OK · 2 NOTE · 2 WARNING · 0 ERROR · 0 FAILURE Apr 6, 2026
WARNING r-release-macos-arm64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘matching.Rnw’ using knitr_notangle
0%   10   20   30   40   50   60   70   80   90   100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
Erro
...[truncated]...
age
                {subcaption}^^M
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘matching.Rnw’

SUMMARY: processing the following file failed:
  ‘matching.Rnw’

Error: Vignette re-building failed.
Execution halted
WARNING r-oldrel-macos-arm64

installed package size

installed size is 14.7Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs  10.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 15.3Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs  10.9Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.1Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs   1.8Mb
ERROR 9 OK · 2 NOTE · 2 WARNING · 1 ERROR · 0 FAILURE Apr 3, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘rJava’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
WARNING r-release-macos-arm64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘matching.Rnw’ using knitr_notangle
0%   10   20   30   40   50   60   70   80   90   100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
Erro
...[truncated]...
age
                {subcaption}^^M
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘matching.Rnw’

SUMMARY: processing the following file failed:
  ‘matching.Rnw’

Error: Vignette re-building failed.
Execution halted
WARNING r-oldrel-macos-arm64

installed package size

installed size is 14.7Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs  10.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 15.3Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs  10.9Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.1Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs   1.8Mb
WARNING 10 OK · 2 NOTE · 2 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
WARNING r-release-macos-arm64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘matching.Rnw’ using knitr_notangle
0%   10   20   30   40   50   60   70   80   90   100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
Erro
...[truncated]...
age
                {subcaption}^^M
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘matching.Rnw’

SUMMARY: processing the following file failed:
  ‘matching.Rnw’

Error: Vignette re-building failed.
Execution halted
WARNING r-oldrel-macos-arm64

installed package size

installed size is 14.7Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs  10.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 15.3Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs  10.9Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.1Mb
  sub-directories of 1Mb or more:
    java   3.3Mb
    libs   1.8Mb

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies Rcpp RcppProgress lpSolve lattice partitions rJava PAutilities matchingMarkets

Version History

new 1.0-5 Mar 10, 2026
updated 1.0-5 ← 1.0-4 diff Dec 21, 2025
updated 1.0-4 ← 1.0-3 diff Aug 7, 2023
updated 1.0-3 ← 1.0-2 diff Jul 20, 2023
updated 1.0-2 ← 1.0-1 diff Jan 11, 2020
updated 1.0-1 ← 1.0-0 diff Feb 3, 2019
updated 1.0-0 ← 0.3-6 diff Dec 3, 2018
updated 0.3-6 ← 0.3-5 diff Oct 22, 2018
updated 0.3-5 ← 0.3-4 diff Feb 22, 2018
updated 0.3-4 ← 0.3-3 diff Jan 10, 2018
updated 0.3-3 ← 0.3-2 diff Mar 25, 2017
updated 0.3-2 ← 0.3-1 diff Aug 26, 2016
updated 0.3-1 ← 0.2-1 diff Aug 20, 2016
updated 0.2-1 ← 0.1-7 diff Jan 29, 2016
updated 0.1-7 ← 0.1-6 diff Oct 10, 2015
updated 0.1-6 ← 0.1-5 diff Oct 5, 2015
updated 0.1-5 ← 0.1-4 diff Jul 7, 2015
updated 0.1-4 ← 0.1-3 diff May 17, 2015
updated 0.1-3 ← 0.1-2 diff Apr 2, 2015
updated 0.1-2 ← 0.1-1 diff Nov 22, 2014