R Observatory
Search
install.packages("matchingMarkets")
CRAN checks, method
1 of 13platforms with problems
CRAN 30-day downloads, method
615−30.6% down on the 30 days before, the worse direction

Implements structural estimators to estimate preferences and correct for the sample selection bias of observed outcomes in matching markets.

Full 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>.

Maintainer
Thilo Klein
Licence
GPL (>= 2)
Latest release
22 Dec 2025
First release
22 Nov 2014

Compare with another package

More details
Releases
20
Needs compilation
Yes
Needs R
>= 3.0.2
RoxygenNote
7.3.1
SystemRequirements
Java
Task views (2)

Earlier: Bayesian Inference (until 17 Jul 2023), Empirical Finance (until 2 May 2023).

Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' entry:

citation("matchingMarkets")

The package provides a citation file, so citation() returns the authors' own entry.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for matchingMarkets version 1.0-5 [Data set]. HJJB, LLC. Data release v2026-10-29. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-29, which the citation names so these numbers can be found later.

1 of 13 check platforms have warnings or errors.

  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    Warning

    Version checked
    1.0-5
    Time taken
    49 s

    re-building of vignette outputs: Warning

    Error(s) in re-building vignettes:

    Full output

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    Note

    Version checked
    1.0-5
    Time taken
    304 s

    dependencies in R code: Note

    Base packages in Suggests/Enhances imported in NAMESPACE:

    Full output

  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    Note

    Version checked
    1.0-5
    Time taken
    227 s

    dependencies in R code: Note

    Base packages in Suggests/Enhances imported in NAMESPACE:

    Full output

  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    Note

    Version checked
    1.0-5
    Time taken
    209 s

    dependencies in R code: Note

    Base packages in Suggests/Enhances imported in NAMESPACE:

    Full output

  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    Note

    Version checked
    1.0-5
    Time taken
    242 s

    dependencies in R code: Note

    Base packages in Suggests/Enhances imported in NAMESPACE:

    Full output

  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    Note

    Version checked
    1.0-5
    Time taken
    453 s

    dependencies in R code: Note

    Base packages in Suggests/Enhances imported in NAMESPACE:

    Full output

  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    1.0-5
    Time taken
    327 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    1.0-5
    Time taken
    455 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    1.0-5
    Time taken
    301 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    1.0-5
    Time taken
    307 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    1.0-5
    Time taken
    45 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    1.0-5
    Time taken
    199 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    1.0-5
    Time taken
    404 s
  • 1 Warning
  • 5 Note
  • 7 OK
Check output (2)

re-building of vignette outputs, Warning on 1 platform

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

dependencies in R code, Note on 5 platforms

Base packages in Suggests/Enhances imported in NAMESPACE:
  ‘grDevices’ ‘graphics’
Base packages in Suggests/Enhances imported in NAMESPACE:
  'grDevices' 'graphics'

Over time

−1 down since 22 Apr 2026, the better direction

As a list (7)
ChangedWorst statusOKNotesWarningsErrors
22 Apr 2026Warning10220
18 Apr 2026Error9221
10 Apr 2026Warning10220
9 Apr 2026Error9221
6 Apr 2026Warning10220
4 Apr 2026Error9221
10 Mar 2026Warning10220

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
646−31.7% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and c2d4u.

CRAN rank

5,023 of 26,553

CRAN

615 downloads in the last 30 days

Rank
5,023 of 26,553
Change
−30.6% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

2 downloads in the last 30 days

Rank
14,902 of 30,526
Change
−92.6% down on the 30 days before, the worse direction

It is in the total. Take it out

c2d4u, no longer updated

29 downloads in the last 30 days

Rank
661 of 7,575
Change
−12.1% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
10
Dependent packages
0
Suggested by
1
Needs (10)
Installing it adds
11 packages, 6.5 MB of source
Of those, need compilation
8
Optional extras (4)
Functions
166
Public exports
16
Lines of R code
5,464
Median complexity
4
Functions (166)
Size and composition

Lines by kind (16,581)

KindLinesShare
R code5,46433%
Documentation1,93212%
Guides3,79323%
Compiled code5,39233%

Lines by language

LanguageLinesShare
R5,64734%
C++5,39233%
Other3,09719%
Rd1,93212%
Vignettes5133%

Languages are counted from file extensions.

Files
119
R functions
59
Compiled functions
111
Object systems
S3: 10 methods
Complexity
Median
4
Mean
7.66
Highest
49
Median lines per function
39
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
59
Calls
32
Unconnected
17
Groups
10
Growth (20 releases)
Total lines by release
3,419 on 14 Aug 201416,581 on 22 Dec 2025
Release changes

The package was built and has no tests to run.

Lines of tests
0
Exports named in tests
0%
Test suite
Has tests
No
Test frameworks
No tests in this release
Test lines per line of code
0
Exports documented
100%
Arguments documented
98.9%
Return value documented
100%
Help pages with examples
85.7%
Examples run in checks
83.3%
Guides (1)
Other documentation
README
Yes, 487 words
Release notes file
Yes
Help pages
21
Lines of documentation
1,932
DatasetSizeColumns
baac00Townsend Thai Project BAAC Annual Resurvey, 2000292 × 8g.id, m.id, loan_size, loan_size2, R, lngroup_agei and 2 more
klein15aMCMC results in Klein (2015a)length 11
klein15bResults of Monte Carlo Simulations in Klein (2015b)length 6

thiloklein / matchingmarkets on github.com

Stars
41no change on 30 days ago
Forks
9
Open issues
2
Last commit
15 Dec 2019
Activity
Commits
126
Open pull requests
1
Tagged releases
0
Latest tagged release
–
In development
The default branch showed an older version (1.0-2) than CRAN on 2026-10-25
Issues closed in
2 days (median)
Pull requests closed in
660 days (median)
Pull requests merged
50%
Created
13 Nov 2013
Licence file reads as
–
Development practices (4)
KindFound
Continuous integrationTravis CI (config file)
Docs sourcepkgdown
GitHub Pages site last deployed 2019-12-15
Lint, format, editorRStudio project

Method, repository practices

Across thiloklein

R releases
  • On CRAN
  • Archived
  • Release
1.0-5BackArchivedArchived and backArchived and back

Archived and back

ArchivedBackCRAN's reasonKind
5 Apr 202321 Jul 2023issues were not corrected in timeChecks not fixed
VersionReleasedREvents
1.0-5 current22 Dec 20254.5.2
1.0-48 Aug 20234.3.1
1.0-321 Jul 20234.3.1Back on CRAN 21 Jul 2023
1.0-212 Jan 20203.6.2Archived 5 Apr 2023
“issues were not corrected in time”
1.0-14 Feb 20193.5.2
1.0-04 Dec 20183.5.1
0.3-623 Oct 20183.5.1
0.3-523 Feb 20183.4.3Licence: GPL (>= 2)
Earlier versions (12)
VersionReleasedR
0.3-411 Jan 20183.4.3
0.3-326 Mar 20173.3.3
0.3-227 Aug 20163.3.1
0.3-121 Aug 20163.3.1
0.2-130 Jan 20163.2.3
0.1-711 Oct 20153.2.2
0.1-66 Oct 20153.2.2
0.1-58 Jul 20153.2.1
0.1-418 May 20153.2.0
0.1-33 Apr 20153.1.3
0.1-223 Nov 20143.1.2
0.1-122 Nov 20143.1.2
Release notes (1.0-5)

Please note that only the most significant changes are reported here.

A full ChangeLog is available on GitHub.

This is a minor update