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

- Author
- Cole Beck [aut, cre], Bo Lu [aut], Robert Greevy [aut]
- Date of publication
- 2016-04-19 08:12:05
- Maintainer
- Cole Beck <cole.beck@vanderbilt.edu>
- License
- GPL (>= 2)
- Version
- 1.5.1
- URLs

## Man pages

- assign.grp
- Random Group Assignment
- distancematrix
- Distance matrix
- fill.missing
- Data Imputation
- gendistance
- Generate a Distance Matrix
- get.sets
- Get named sets of matches
- make.phantoms
- Add Phantom Rows and Columns
- nbpMatching-internal
- Internal nbpMatching objects.
- nbpMatching-package
- Nonbipartite Matching
- nonbimatch
- Nonbipartite Matching
- qom
- Quality of Match
- quantile
- Quantile for upper-triangular values in distance matrix
- scalar.dist
- Calculate scalar distance
- subsetMatches
- Subset Matches

## Files in this package

nbpMatching |

nbpMatching/COPYING |

nbpMatching/src |

nbpMatching/src/fcorematch.f |

nbpMatching/src/mwrap.f |

nbpMatching/NAMESPACE |

nbpMatching/NEWS.md |

nbpMatching/R |

nbpMatching/R/nbpmatching-package.R |

nbpMatching/R/assign.grp.R |

nbpMatching/R/utils.R |

nbpMatching/R/quantile.R |

nbpMatching/R/distancematrix.R |

nbpMatching/R/nonbimatch.R |

nbpMatching/R/subsetMatches.R |

nbpMatching/R/fill.missing.R |

nbpMatching/R/qom.R |

nbpMatching/R/make.phantoms.R |

nbpMatching/R/gendistance.R |

nbpMatching/MD5 |

nbpMatching/DESCRIPTION |

nbpMatching/man |

nbpMatching/man/gendistance.Rd |

nbpMatching/man/quantile.Rd |

nbpMatching/man/distancematrix.Rd |

nbpMatching/man/nonbimatch.Rd |

nbpMatching/man/scalar.dist.Rd |

nbpMatching/man/nbpMatching-package.Rd |

nbpMatching/man/fill.missing.Rd |

nbpMatching/man/assign.grp.Rd |

nbpMatching/man/nbpMatching-internal.Rd |

nbpMatching/man/get.sets.Rd |

nbpMatching/man/subsetMatches.Rd |

nbpMatching/man/make.phantoms.Rd |

nbpMatching/man/qom.Rd |