Skip to content

optmatch

0.10.8Package record

Functions for Optimal Matching

6packages dependsuggested by 17
84.2Kdownloads / year
74.1%test coverage
13/13flavors OK

Overview

About

Distance based bipartite matching using minimum cost flow, oriented to matching of treatment and control groups in observational studies ('Hansen' and 'Klopfer' 2006 doi:10.1198/106186006X137047). Routines are provided to generate distances from generalised linear models (propensity score matching), formulas giving variables on which to limit matched distances, stratified or exact matching directives, or calipers, alone or in combination.

Changes in 0.10.8
  • Updates to internal C++ code.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 6.2 min · r-oldrel-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
  • NOTE12 OK, 1 NOTE2026-06-07
Show 4 earlier changesHide 4 earlier changes
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-04-22
  • ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.10.8
README· In the repository, left out of the releaseVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 0.10.8Citation fileYes · cites a publicationWebsiteYes
Help pages
66 (15 internal)
Examples that run
100%16 run in a plain check
Exported functions with examples
50%
Documented parameters
100%
Return-value docs
93%
Help pages citing references
17%

Also includes 1 demo script (run with demo())

Downloads

84.2K
CRAN downloads in the past year
Rank #1,472 · ~231/day · ~7K/mo
Daily download trend is not available in this view yet.
6.4K30 days
17.4K90 days
84.2K1 year
Compare downloads with other packages →
Also on2K r2u6 autocran2K conda_forge273 c2d4u

Repository

50Stars
14Forks
33Open issues
1Open PRs
0Releases
1,738Commits
11Commit identities
matchingrr-package
1,738 commits · Last activity 2026-09-24 · 0% stars, 30d · Default branch at 0.10.8.9003, ahead of CRAN 0.10.8 (checked 2026-10-21)
Responsiveness
How these are sampled
PRs merged (all time)
85%
Median days to close, 50 most recently updated closed issues
132
Median days to close, 50 most recently updated closed PRs
6

Stars over time

2025-06-29 · 482026-07-07 · 50
PracticesBeta

9 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/markmfredrickson/optmatch on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-09-24 · The repository has a site deploy workflow

Reproducibility and dev environment (2)
data-raw/Makefile
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-03-04
    Commits: at least 2 crediting it in the message
Models named in its commits
  • Claude Opus 4.61 commit · Mar 2026
  • Claude Opus 51 commit · Sep 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

Installing optmatch adds 17 packages (11 with compiled code, 7.5 MB of source tarballs). Heaviest: Rcpp 1.8 MB, vctrs 1.0 MB, dplyr 902 KB.

Depends (1)
R >= 3.5.0
Imports (7)
Rcppdplyrstatstibblemethodsgraphicsrlemon
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
6direct
0indirect
Depends 1 · Imports 5
Suggested by 17
Show all 23 packagesHide all 23 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (5)
Maintainer since 0.10.0 (2022), Author · added in 0.9-0
Author · added in 0.9-0
Author · added in 0.6-0
Author · added in 0.10.0
Contributor · added in 0.9-11

Previously maintained by Mark M. Fredrickson (0.7-5 to 0.9-17) and Ben B. Hansen (0.1-6 to 0.7-3).

Listed in earlier versions (7)
Show 7 peopleHide 7 people
with embedded Fortran code due to Dimitri P. Bertsekas
no longer listed · 0.1-6 to 0.9-17
Ben B. Hansen
no longer listed · 0.1-6 to 0.9-17
Paul Tseng.
no longer listed · 0.1-6 to 0.4-1
with contributions from Mark Fredrickson
no longer listed · 0.5-0
Paul Tseng
no longer listed · 0.5-0 to 0.9-17
Josh Buckner with embedded Fortran code due to Dimitri P. Bertsekas
no longer listed · 0.8-3
Peter Solenberger
no longer listed · 0.9-1 to 0.9-17
Releases (48)

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
  • 0.10.8Latest
    record
    2024-09-19 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.10.7
    record
    2023-11-15 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.10.6
    record
    2023-02-07 · diff ↗
  • 0.10.5
    record
    2022-08-15 · diff ↗
  • 0.10.4
    record
    2022-08-09 · diff ↗
  • 0.10.3
    record
    2022-05-16 · diff ↗
  • 0.10.2
    record
    2022-05-15 · diff ↗
  • 0.10.1
    record
    2022-05-13 · diff ↗ ·
    added 2 exports
    dbind, strata
  • R
    R 4.2.0 released · 2022-04-22
  • unarchivedReturned to CRAN
    2022-03-15
  • 0.10.0
    record
    2022-03-15 · diff ↗ ·
    removed 1 export
    relaxinfo
    added 1 export
    LEMON
  • archivedRemoved from CRAN
    2022-02-23
    still requires archived package 'RItools'
Show 64 earlier eventsHide 64 earlier events
  • unarchivedReturned to CRAN
    2022-02-22
  • 0.9-17
    record
    2022-02-22 · diff ↗
  • archivedRemoved from CRAN
    2022-02-19
    requires archived package 'RItools'
  • 0.9-15
    record
    2021-08-17 · diff ↗
  • 0.9-14
    record
    2021-05-26 · diff ↗ ·
    added 1 export
    standardization_scale
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.9-13
    record
    2019-12-06 · diff ↗
  • 0.9-12
    record
    2019-10-11 · diff ↗
  • 0.9-11
    record
    2019-07-12 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.9-10
    record
    2018-07-12 · diff ↗
  • 0.9-9
    record
    2018-05-15 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.9-8
    record
    2018-01-17 · diff ↗ ·
    removed 4 exports
    cbind.BlockedInfinitySparseMatrix, cbind.InfinitySparseMatrix, rbind.BlockedInfinitySparseMatrix, rbind.InfinitySparseMatrix
    added 2 exports
    findSubproblems, setMaxProblemSize
  • R
    R 3.4.0 released · 2017-04-21
  • 0.9-7
    record
    2016-12-30 · diff ↗
  • 0.9-6
    record
    2016-05-03 · diff ↗ ·
    added 6 exports
    as.InfinitySparseMatrix, cbind.BlockedInfinitySparseMatrix, cbind.InfinitySparseMatrix, effectiveSampleSize, rbind.BlockedInfinitySparseMatrix, rbind.InfinitySparseMatrix
  • R
    R 3.3.0 released · 2016-05-03
  • 0.9-5
    record
    2015-07-31 · diff ↗ ·
    added 1 export
    getMaxProblemSize
  • R
    R 3.2.0 released · 2015-04-16
  • 0.9-3
    record
    2014-08-13 · diff ↗ ·
    added 2 exports
    antiExactMatch, distUnion
  • R
    R 3.1.0 released · 2014-04-10
  • 0.9-1
    record
    2013-11-01 · diff ↗
  • 0.9-0
    record
    2013-08-10 · diff ↗ ·
    added 5 exports
    num_eligible_matches, optmatch_restrictions, optmatch_same_distance, scores, subdim
  • 0.8-3
    record
    2013-05-16 · diff ↗ ·
    added 4 exports
    full, mahal.dist, pair, pscore.dist
  • R
    R 3.0.0 released · 2013-04-03
  • 0.8-1
    record
    2013-01-03 · diff ↗
  • 0.8-0
    record
    2012-11-17 · diff ↗ ·
    removed 3 exports
    makedist, pscore.dist, mahal.dist
    added 4 exports
    match_on, maxCaliper, minExactMatch, exactMatch
  • 0.7-5
    record
    2012-07-27 · diff ↗
  • 0.7-3
    record
    2012-04-02 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • R
    R 2.13.0 released · 2011-04-13
  • 0.7-1
    record
    2011-03-06 · diff ↗
  • R
    R 2.12.0 released · 2010-10-15
  • 0.7-0
    record
    2010-07-30 · diff ↗ ·
    added 1 export
    fill.NAs
  • R
    R 2.11.0 released · 2010-04-22
  • 0.6-1
    record
    2010-02-11 · diff ↗
  • R
    R 2.10.0 released · 2009-10-26
  • 0.6-0
    record
    2009-09-28 · diff ↗ ·
    added 2 exports
    caliper, mdist
  • 0.5-0
    record
    2009-05-19 · diff ↗
  • R
    R 2.9.0 released · 2009-04-17
  • R
    R 2.8.0 released · 2008-10-20
  • 0.4-1
    record
    2008-07-05 · diff ↗
  • 0.4-0
    record
    2008-05-20 · diff ↗
  • 0.3-9
    record
    2008-05-14 · diff ↗
  • 0.3-8
    record
    2008-05-13 · diff ↗
  • R
    R 2.7.0 released · 2008-04-22
  • 0.3-4
    record
    2008-02-27 · diff ↗
  • R
    R 2.6.0 released · 2007-10-03
  • 0.3-3
    record
    2007-08-25 · diff ↗
  • 0.3-2
    record
    2007-08-09 · diff ↗
  • 0.3-1
    record
    2007-07-09 · diff ↗ ·
    added 3 exports
    pscore.dist, mahal.dist, matched.distances
  • 0.2-3
    record
    2007-05-10 · diff ↗
  • R
    R 2.5.0 released · 2007-04-24
  • 0.2-2
    record
    2007-04-16 · diff ↗ ·
    added 1 export
    stratumStructure
  • 0.2-1
    record
    2006-10-30 · diff ↗ ·
    added 9 exports
    fullmatch, pairmatch, makedist, matched, matchfailed, unmatched, maxControlsCap, minControlsCap, relaxinfo
  • R
    R 2.4.0 released · 2006-10-03
  • 0.2
    record
    2006-06-12 · diff ↗
  • R
    R 2.3.0 released · 2006-04-24
  • 0.1-7
    record
    2006-04-05 · diff ↗
  • 0.1-6
    record
    2005-10-29
  • R
    R 2.2.0 released · 2005-10-06

Package metadata

First published
2005-10-29
Total releases
48 / 21 yrs
License
MIT + file LICENSE OSI
Additional repositories
errickson.net
Minimum R
≥ 3.5.0
Bundled data
1.2 KB / 2 files
Download size
1.0 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("optmatch")

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

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 optmatch version 0.10.8 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, 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