Skip to content

nbpMatching

1.5.6Package record

Functions for Optimal Non-Bipartite Matching

7packages dependsuggested by 6
9.9Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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()'.

Changes in 1.5.6
  • fix Fortran legacy - replace DFLOAT with DBLE

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.8 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.5.6
README· In the repository, left out of the releaseVignettesNoNEWSYes · 100% structured · mentions 1.5.6Citation fileNoWebsitenot declared in DESCRIPTION
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

9.9K
CRAN downloads in the past year
Rank #3,062 · ~27/day · ~822/mo
Daily download trend is not available in this view yet.
2.3K30 days
4.2K90 days
9.9K1 year
Compare downloads with other packages →
Also on405 r2u1 autocran42 c2d4u

Repository

9Stars
1Forks
2Open issues
0Open PRs
0Releases
28Commits
3Commit identities
28 commits · Last activity 2024-09-24
Responsiveness
How these are sampled
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
PracticesBeta

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.

CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

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.

Depends (0)
none
Imports (5)
methodsstatsHmiscMASSutils
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
7direct
1indirect
Depends 1 · Imports 6
Suggested by 6
Show all 13 packagesHide all 13 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (3)
Author, Maintainer since 1.0 (2009)
Author
Releases (14)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • R
    R 3.0.0 released · 2013-04-03
  • 2.15.3Latest
    record
    2012-11-19 · current release · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
Show 19 earlier eventsHide 19 earlier events

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")
Beck, C., Greevy, R., & Lu, B. (2024). nbpMatching: Functions for Optimal Non-Bipartite Matching (Version 1.5.6) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for nbpMatching version 1.5.6 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy