generatePairdistanceGraph {MultiObjMatch}R Documentation

Distance vs. exclusion

Description

Plotting function that generate sum of pair-wise distance vs. number of unmatched treated units

Usage

generatePairdistanceGraph(matchingResult)

Arguments

matchingResult

an object returned by the main matching function distBalMatch

Value

No return value, called for visualization of match result

See Also

Other Graphical helper functions for analysis: generatePairdistanceBalanceGraph(), generateTVGraph()

Examples

## Generate matches 
data("lalonde", package="cobalt")
psCols <- c("age", "educ", "married", "nodegree")
treatVal <- "treat"
responseVal <- "re78"
pairDistVal <- c("age", "married", "educ", "nodegree")
exactVal <- c("educ")
myBalVal <- c("race")
r1s <- c( 0.1, 0.3, 0.5, 0.7, 0.9,1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7)
r2s <- c(0.01)
matchResult <- distBalMatch(df=lalonde, treatCol=treatVal, myBalCol=myBalVal,
rhoExclude =r1s, rhoBalance=r2s,
distList=pairDistVal, exactlist=exactVal,
propensityCols = psCols,ignore = c(responseVal), maxUnMatched = 0.1,
caliperOption=NULL, toleranceOption=1e-1, maxIter=0, rho.max.f = 10)

## Generate visualization of tradeoff between pari-wise distance sum and 
## number of treated units left unmatched
generatePairdistanceGraph(matchResult)

[Package MultiObjMatch version 0.1.3 Index]