compareTables {MultiObjMatch}R Documentation

Summarize covariate balance table

Description

This function would take the result of generateBalanceTable function and combine the results in a single table. It only works for 'Basic' version of the matching.

Usage

compareTables(balanceTable)

Arguments

balanceTable

a named list, which is the result from the function generateBalanceTable

Value

a dataframe with combined information

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 summary table for comparing matches 
compareTables(generateBalanceTable(matchResult))

[Package MultiObjMatch version 0.1.3 Index]