if (FALSE) { # rlang::is_installed("cobalt")
library("cobalt")
data("lalonde", package = "cobalt")
# Generating tols; 0 by default
tols <- process_tols(treat ~ age + educ + married +
nodegree + re74,
data = lalonde)
tols
tols <- process_tols(treat ~ age + educ + married +
nodegree + re74,
data = lalonde,
tols = .05)
tols
# Checking the order of interactions; notice they go
# at the end even if specified at the beginning.
tols <- process_tols(treat ~ age:educ + married*race +
nodegree + re74,
data = lalonde,
tols = .05)
tols
# Internal tolerances for expanded covariates
print(tols, internal = TRUE)
}
Run the code above in your browser using DataLab