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 covList to specify the variables to examine. "penalty" by default.

cov_list

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

display_all

(optional) boolean value of whether to display all the matches if "balance" is passed in for type; default is TRUE, where all matches are displayed.

stat

(optional) character of the name of the statistic used for measuring covariate balance if "balance" is passed in for type; default is "mean.diff". This argument is the same as used in "cobalt" package, see: bal.tab

...

ignored.

Value

a summary dataframe of the corresponding type.


[Package MultiObjMatch version 1.0.0 Index]