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:
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')) |
Bug tracker:https://github.com/couthcommander/nbpmatching/issues
Last updated 2 months agofrom:5c43f28c25. Checks:OK: 9. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 23 2024 |
R-4.5-win-x86_64 | OK | Nov 23 2024 |
R-4.5-linux-x86_64 | OK | Nov 23 2024 |
R-4.4-win-x86_64 | OK | Nov 23 2024 |
R-4.4-mac-x86_64 | OK | Nov 23 2024 |
R-4.4-mac-aarch64 | OK | Nov 23 2024 |
R-4.3-win-x86_64 | OK | Nov 23 2024 |
R-4.3-mac-x86_64 | OK | Nov 23 2024 |
R-4.3-mac-aarch64 | OK | Nov 23 2024 |
Exports:assign.grpdistancematrixfill.missingfull.qomgendistanceget.setsmake.phantomsnonbimatchqomquantilerunnerscalar.distsubsetMatches
Dependencies:backportsbase64encbslibcachemcheckmatecliclustercolorspacedata.tabledigestevaluatefansifarverfastmapfontawesomeforeignFormulafsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmennetpillarpkgconfigR6rappdirsRColorBrewerrlangrmarkdownrpartrstudioapisassscalesstringistringrtibbletinytexutf8vctrsviridisviridisLitewithrxfunyaml
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Nonbipartite Matching | nbpMatching-package nbpMatching |
Random Group Assignment | assign.grp assign.grp,data.frame-method assign.grp,nonbimatch-method |
Distance matrix | distancematrix distancematrix,character-method distancematrix,data.frame-method distancematrix,list-method distancematrix,matrix-method distancematrix-class |
Data Imputation | fill.missing fill.missing,data.frame-method |
Generate a Distance Matrix | gendistance gendistance,data.frame-method |
Get named sets of matches | get.sets get.sets,data.frame-method get.sets,nonbimatch-method |
Add Phantom Rows and Columns | make.phantoms make.phantoms,ANY,missing-method make.phantoms,data.frame,numeric-method make.phantoms,matrix,numeric-method |
Nonbipartite Matching | nonbimatch nonbimatch,distancematrix-method nonbimatch-class |
Quality of Match | qom qom,data.frame,data.frame-method qom,data.frame,nonbimatch-method |
Quantile for upper-triangular values in distance matrix | quantile quantile,distancematrix-method |
Calculate scalar distance | scalar.dist scalar.dist,vector-method |
Subset Matches | subsetMatches subsetMatches,nonbimatch-method |