pairmatchelastic(mdist, n = 0, val = 0)
elastic(mdist, n = 0, val = 0)val).elastic returns an augmented version of the input matrix mdist.
pairmatchelastic returns a matrix of 1 column whose values are the column numbers of matched controls and whose rownames are the row numbers of matched treated units.pairmatchelastic is the main function, which conducts an entire match. elastic is a helper function which augments the original distance matrix as described in the reference.
The original versions of these functions were written by Paul Rosenbaum and distributed in the supplemental material to the reference.