generate_balance_table: Generate balance table

generate_balance_tableR Documentation

Generate balance table

Description

The helper function can generate tabular analytics that quantify covariate imbalance after matching.

Usage

generate_balance_table(
  matchingResult,
  covList = NULL,
  display.all = TRUE,
  statList = c("mean.diffs")
)

Arguments

matchingResult

an object returned by the main matching function distBalMatch

covList

(optional) a vector of names of covariates used for evaluating covariate imbalance; NULL by default

display.all

(optional) a boolean value indicating whether or not to show the data for all possible matches; TRUE by default

statList

(optional) a vector fo statistics that are calculated for evaluating the covariate imbalance betweeen treated and control group;

Details

The result can be either directly used by indexing into the list, or post-processing by the function compare_tables that summarizes the covariate balance information in a tidier table. Users can specify the arguments as follows:

  • covList: if it is set of NULL, all the covariates are included for the covariate balance table; otherwise, only the specified covariates will be included in the tabular result.

  • display.all: by default, the summary statistics for each match are included when the argument is set to TRUE. If the user only wants to see the summary statistics for matchings with varying performance on three different objective values, the function would only display the matches with number of treated units being exluded at different quantiles. User can swith to the brief version by setting the parameter to FALSE.

  • statList is the list of statistics used for measuring balance. The argument is the same as stats argument in bal.tab, which is the function that is used for calculating the statistics. By default, only standardized difference in means is calculated.

Value

a named list object containing covariate balance table and statistics for numer of units being matched for each match; the names are the character of index for each match in the matchResult.

See Also

Other numerical analysis helper functions: generateRhoObj(), getUnmatched()


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