Functions for Optimal Non-Bipartite Matching
Overview
Perform non-bipartite matching and matched randomization. A "bipartite" matching utilizes two separate groups, e.g. smokers being matched to nonsmokers or cases being matched to controls. A "non-bipartite" matching creates mates from one big group, e.g. 100 hospitals being randomized for a two-arm cluster randomized trial or 5000 children who have been exposed to various levels of secondhand smoke and are being paired to form a greater exposure vs. lesser exposure comparison. At the core of a non-bipartite matching is a N x N distance matrix for N potential mates. The distance between two units expresses a measure of similarity or quality as mates (the lower the better). The 'gendistance()' and 'distancematrix()' functions assist in creating this. The 'nonbimatch()' function creates the matching that minimizes the total sum of distances between mates; hence, it is referred to as an "optimal" matching. The 'assign.grp()' function aids in performing a matched randomization. Note bipartite matching can be performed using the prevent option in 'gendistance()'.
- fix Fortran legacy - replace DFLOAT with DBLE
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 13 (1 internal)includes a package overview page
- Examples that run
- 100%12 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 8%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 212
- Median days to close, 50 most recently updated closed PRs
- not measured
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/couthcommander/nbpmatching on 2026-10-21.
Dependencies
Installing nbpMatching adds 51 packages (26 with compiled code, 52 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Show all 13 packagesHide all 13 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- RR 3.0.0 released · 2013-04-03
- 2.15.3Latest
- RR 2.15.0 released · 2012-03-30
Show 19 earlier eventsHide 19 earlier events
- RR 2.14.0 released · 2011-10-31
- 2.14.0
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- RR 2.11.0 released · 2010-04-22
- RR 2.10.0 released · 2009-10-26
- 2.10.02009-09-18 · diff ↗
- 1.5.62024-09-25 · diff ↗
- 1.5.52024-05-17 · diff ↗
- 1.5.42023-08-19 · diff ↗
- 1.5.12016-04-19 · diff ↗
- 1.5.02016-01-13 · diff ↗
- 1.4.52015-05-15 · diff ↗
- 1.4.42015-01-21 · diff ↗
- 1.4.02013-04-17 · diff ↗
- 1.3.6
- 1.3.22012-10-29 · diff ↗
- 1.02009-09-18
- RR 2.9.0 released · 2009-04-17
Package metadata
- First published
- 2009-09-18
- Total releases
- 14 / 17 yrs
- License
- GPL (>= 2) OSI
- Download size
- 37 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("nbpMatching")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.