Options for Displaying bal.tab() Output
Several additional arguments can be passed to bal.tab()
that control the display of the output; these arguments are documented here.
Not all arguments are applicable to all uses of bal.tab()
; for example, which.subclass
, which controls which subclasses are displayed when subclassification is used, won't do anything when subclassification is not used.
Note that when quick = TRUE
is set in the call to bal.tab()
(which is the default), setting any of these arguments to FALSE
can prevent some values from being computed, which can have unintended effects.
disp.bal.tab |
|
imbalanced.only |
|
un |
|
disp |
|
stats |
|
factor_sep |
|
int_sep |
|
disp.call |
|
When subclassification is used
which.subclass |
Which subclasses (if any) should be displayed. If |
subclass.summary |
|
When the treatment is multi-category
which.treat |
For which treatments or treatment combinations balance tables should be displayed. If a vector of length 1 is entered, all comparisons involving that treatment group will be displayed. If a vector of length 2 or more is entered, all comparisons involving treatments that both appear in the input will be displayed. For example, setting |
multi.summary |
|
When clusters are present
which.cluster |
For which clusters balance tables should be displayed. If |
cluster.summary |
|
cluster.fun |
Which function is used in the across-cluster summary to combine results across clusters. Can be "min", "mean", or "max". For example, if |
When multiple imputations are present
which.imp |
For which imputations balance tables should be displayed. If |
imp.summary |
|
imp.fun |
Which function is used in the across-imputation summary to combine results across imputations. Can be "min", "mean", or "max". For example, if |
When the treatment is longitudinal
which.time |
For which time points balance tables should be displayed. If |
msm.summary |
|
Deprecated arguments
The following arguments are deprecated but still work.
disp.means |
|
disp.sds |
|
disp.diff |
|
disp.v.ratio |
|
disp.ks |
|
disp.ovl |
|
In addition to being able to be specified as arguments, if you find you frequently set a display option to something other than its default, you can set that as a global option (for the present R session) using set.cobalt.options()
and retrieve it using get.cobalt.options()
. Note that global options cannot be set for which.subclass
, which.cluster
, which.imp
, which.treat
, or which.time
.
When calling bal.tab()
using do.call()
, if you are using .all
or .none
as inputs to arguments, you need to use alist()
rather than list()
to group the arguments. For example, do.call(bal.tab, list(., which.cluster = .none))
will produce an error, but do.call(bal.tab, alist(., which.cluster = .none))
should work correctly.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.