set.cobalt.options {cobalt} | R Documentation |
Set and Get Options in cobalt
Description
Makes it easier to set cobalt options. set.cobalt.options()
is essentially a wrapper for options()
but performs several checks, and get.cobalt.options()
is essentially a wrapper for getOption()
.
Usage
set.cobalt.options(..., default = FALSE)
get.cobalt.options(...)
Arguments
... |
For For |
default |
if |
Details
When an option is set to NULL
, it is set to its default value. The defaults are not displayed but are listed on the help pages where they appear. Most options correspond to display options, which can be accessed here. Some others (e.g., continuous
and binary
) are described on the bal.tab()
help page.
See Also
-
display-options
for some arguments that can be set via options.
Examples
# Set un to be TRUE to always display unadjusted
# balance measures and set binary to "std" to
# produce standardized mean differences for
# binary variables.
set.cobalt.options(un = TRUE, binary = "std")
# Note: the above is equivalent to:
# options(cobalt_un = TRUE, cobalt_binary = "std")
# but performs some additional checks
get.cobalt.options("un", "binary")
# Note: the above is equivalent to:
# getOption("cobalt_un")
# getOption("cobalt_binary")
# Return all cobalt options to their defaults
set.cobalt.options(default = TRUE)
# View all available options
get.cobalt.options()