generate_balance_table | R Documentation |
The helper function can generate tabular analytics that quantify covariate imbalance after matching.
generate_balance_table( matchingResult, covList = NULL, display.all = TRUE, statList = c("mean.diffs") )
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; |
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.
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
.
Other numerical analysis helper functions:
generateRhoObj()
,
getUnmatched()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.