compareMatching | R Documentation |
This is a wrapper function that the users can directly use for evaluating covariate balance accress different functions.
The function calls compareTables
on the output from the function generateBalanceTable
. It only works for 'Baisc' version of matching.
compareMatching( matchingResult, covList = NULL, displayOption = TRUE, stat = "mean.diff" )
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 |
displayOption |
(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 |
a dataframe that shows covariate balance in different matches
## Not run: compareMatching(matchResult, displayOption = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.