Package: nbpMatching 1.5.6

nbpMatching: Functions for Optimal Non-Bipartite Matching

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

Authors:Cole Beck [aut, cre], Bo Lu [aut], Robert Greevy [aut]

nbpMatching_1.5.6.tar.gz
nbpMatching_1.5.6.zip(r-4.5)nbpMatching_1.5.6.zip(r-4.4)nbpMatching_1.5.6.zip(r-4.3)
nbpMatching_1.5.6.tgz(r-4.4-x86_64)nbpMatching_1.5.6.tgz(r-4.4-arm64)nbpMatching_1.5.6.tgz(r-4.3-x86_64)nbpMatching_1.5.6.tgz(r-4.3-arm64)
nbpMatching_1.5.6.tar.gz(r-4.5-noble)nbpMatching_1.5.6.tar.gz(r-4.4-noble)
nbpMatching_1.5.6.tgz(r-4.4-emscripten)nbpMatching_1.5.6.tgz(r-4.3-emscripten)
nbpMatching.pdf |nbpMatching.html
nbpMatching/json (API)
NEWS

# Install 'nbpMatching' in R:
install.packages('nbpMatching', repos = c('https://couthcommander.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/couthcommander/nbpmatching/issues

On CRAN:

6.56 score 8 stars 5 packages 76 scripts 562 downloads 4 mentions 13 exports 65 dependencies

Last updated 2 months agofrom:5c43f28c25. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 23 2024
R-4.5-win-x86_64OKNov 23 2024
R-4.5-linux-x86_64OKNov 23 2024
R-4.4-win-x86_64OKNov 23 2024
R-4.4-mac-x86_64OKNov 23 2024
R-4.4-mac-aarch64OKNov 23 2024
R-4.3-win-x86_64OKNov 23 2024
R-4.3-mac-x86_64OKNov 23 2024
R-4.3-mac-aarch64OKNov 23 2024

Exports:assign.grpdistancematrixfill.missingfull.qomgendistanceget.setsmake.phantomsnonbimatchqomquantilerunnerscalar.distsubsetMatches

Dependencies:backportsbase64encbslibcachemcheckmatecliclustercolorspacedata.tabledigestevaluatefansifarverfastmapfontawesomeforeignFormulafsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmennetpillarpkgconfigR6rappdirsRColorBrewerrlangrmarkdownrpartrstudioapisassscalesstringistringrtibbletinytexutf8vctrsviridisviridisLitewithrxfunyaml

Readme and manuals

Help Manual

Help pageTopics
Nonbipartite MatchingnbpMatching-package nbpMatching
Random Group Assignmentassign.grp assign.grp,data.frame-method assign.grp,nonbimatch-method
Distance matrixdistancematrix distancematrix,character-method distancematrix,data.frame-method distancematrix,list-method distancematrix,matrix-method distancematrix-class
Data Imputationfill.missing fill.missing,data.frame-method
Generate a Distance Matrixgendistance gendistance,data.frame-method
Get named sets of matchesget.sets get.sets,data.frame-method get.sets,nonbimatch-method
Add Phantom Rows and Columnsmake.phantoms make.phantoms,ANY,missing-method make.phantoms,data.frame,numeric-method make.phantoms,matrix,numeric-method
Nonbipartite Matchingnonbimatch nonbimatch,distancematrix-method nonbimatch-class
Quality of Matchqom qom,data.frame,data.frame-method qom,data.frame,nonbimatch-method
Quantile for upper-triangular values in distance matrixquantile quantile,distancematrix-method
Calculate scalar distancescalar.dist scalar.dist,vector-method
Subset MatchessubsetMatches subsetMatches,nonbimatch-method