View source: R/set.cobalt.options.R
set.cobalt.options | R Documentation |
cobalt
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()
.
set.cobalt.options(..., default = FALSE)
get.cobalt.options(...)
... |
For For |
default |
if |
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.
options()
display-options
for some arguments that can be set via options.
# 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.