rcbalance
The DESCRIPTION file: rcbalance rcbalance This package computes sparse matches that are optimal under a set of refined covariate balance constraints. These constraints, provided by the user, are a set of nested categorical variables of decreasing imporance which must be marginally balanced as closely as possible in the resulting treated and matched control populations. For more detail see the references.
The main function is rcbalance
, which takes a distance/sparsity object containing information about matchability of the treated and control units and a list of fine balance variables and produces a match. The build.dist.struct
function can be used to construct the distance/sparsity object from covariate information. The count.pairings
function can be used to assess the sparsity of a proposed match. The other functions are largely for internal use and should not be needed by the large majority of users.
By default the package uses the R package rlemon
to solve the minimum-cost network flow optimization problems by which matches are computed. Alternatively, users may specify that the rrelaxiv
package
should be used instead. However, this package carries an academic license
and is not available on CRAN so users must install it themselves.
Pimentel, S.D., Kelz, R.R., Silber, J.H., and Rosenbaum, P.R. (2015) Large, sparse optimal matching with refined covariate balance in an observational study of the health outcomes produced by new surgeons, JASA 110 (510), 515-527.
Pimentel, S.D. (2016) Large, sparse optimal matching with R package rcbalance, Obs. Studies 2, 4-23.