summary.multiObjMatch {MultiObjMatch} | R Documentation |
Generate numerical summary
Description
Main summary functions for providing tables of numerical information in matching penalties, objective function values, and balance.
Usage
## S3 method for class 'multiObjMatch'
summary(
object,
type = "penalty",
cov_list = NULL,
display_all = TRUE,
stat = "mean.diff",
...
)
Arguments
object |
the matching result returned by either dist_bal_match or two_dist_match. |
type |
(optional) the type of the summary result in c("penalty",
"exclusion", "balance"). When "penalty" is passed in, the objective
function values and the penalty values are displayed for each match;
when "exclusion" is passed in, the number of units being matched is
displayed for each match; when "balance" is passed in, the covariate
the covariate balance table from bal.tab function in cobalt function
is displayed and user can change |
cov_list |
(optional) factor of names of covariates that we want to
evaluate covariate balance on if "balance" is passed in for |
display_all |
(optional) boolean value of whether to display all the
matches if "balance" is passed in for |
stat |
(optional) character of the name of the statistic used for
measuring covariate balance if "balance" is passed in for |
... |
ignored. |
Value
a summary dataframe of the corresponding type.