generatePairdistanceBalanceGraph {MultiObjMatch}R Documentation

Total variation imbalance vs. marginal imbalance

Description

Plotting function that generate sum of pairwise distance vs. total variation imbalance on specified balance variable. This function only works for 'Basic' version of matching (conducted using distBalMatch).

Usage

generatePairdistanceBalanceGraph(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: generatePairdistanceGraph(), 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)

## Visualize the tradeoff between the pair-wise distance sum and 
## total variation distance 
generatePairdistanceBalanceGraph(matchResult)

[Package MultiObjMatch version 0.1.3 Index]