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

904

Last 30 days

3984th

904

Last 90 days

904

Last year

CRAN Check Status

1 ERROR
2 WARNING
2 NOTE
9 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang ERROR
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 (15 non-OK)
ERROR r-devel-linux-x86_64-debian-clang

package dependencies

Package required but not available: ‘rJava’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
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

*


            
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
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
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
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 9 OK · 2 NOTE · 2 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-debian-clang

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%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
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)
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 9, 2026