compareMatching: Generate covariate balance in different matches

compareMatchingR Documentation

Generate covariate balance in different matches

Description

This is a wrapper function that the users can directly use for evaluating covariate balance accress different functions. The function calls compareTables on the output from the function generateBalanceTable. It only works for 'Baisc' version of matching.

Usage

compareMatching(
  matchingResult,
  covList = NULL,
  displayOption = TRUE,
  stat = "mean.diff"
)

Arguments

matchingResult

an object returned by the main matching function distBalMatch

covList

(optional) factor of names of covariates that we want to evaluate covariate balance on; default is NULL. When set to Null, the program will compare the covariates that have been used to construct a propensity model

displayOption

(optional) boolean value of whether to display all the matches; default is TRUE, where matches at each quantile is displayed

stat

(optional) character of the name of the statistic used for measuring covariate balance; default is "mean.diff". This argument is the same as used in "cobalt" package

Value

a dataframe that shows covariate balance in different matches

Examples

## Not run: 
compareMatching(matchResult, displayOption = TRUE)

## End(Not run)

ShichaoHan/MultiObjMatch documentation built on May 3, 2022, 7:24 p.m.