compare_matching: Generate covariate balance in different matches

compare_matchingR 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 compare_tables on the output from the function generate_balance_table.

Usage

compare_matching(
  matchingResult,
  covList = NULL,
  display_option = 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

display_option

(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


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