Package: nbpMatching
Type: Package
Title: Functions for Optimal Non-Bipartite Matching
Version: 1.5.0
Date: 2016-01-12
Author: Cole Beck [aut, cre], Bo Lu [aut], Robert Greevy [aut]
Maintainer: Cole Beck <cole.beck@vanderbilt.edu>
Authors@R: c(person("Cole", "Beck", role = c("aut", "cre"),
email = "cole.beck@vanderbilt.edu"),
person("Bo", "Lu", role = "aut"),
person("Robert", "Greevy", role = "aut"))
Description: 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()'.
License: GPL (>= 2)
Imports: methods, stats, Hmisc, MASS, utils
Suggests: testthat
URL: http://biostat.mc.vanderbilt.edu/wiki/Main/MatchedRandomization
NeedsCompilation: yes
Packaged: 2016-01-13 17:29:14 UTC; beckca
Repository: CRAN
Date/Publication: 2016-01-13 22:36:54

Description: User-friendly functions for extracting a data
table (row for each match, column for each group)
from non-tabular text data using regular expressions,
and for melting columns that match a regular expression.
Patterns are defined using a readable syntax
that makes it easy to build complex patterns
in terms of simpler, re-usable sub-patterns.
Named R arguments are translated to column names
in the output; capture groups without names are used
internally in order to provide a standard interface
to three regular expression C libraries (PCRE, RE2, ICU).
Output can also include numeric columns via
Suggests: testthat, re2r, stringi, ggplot2, tidyr (>= 1.0.0), cdata,