bal.table: Balance tables for twangRDC
Description
bal.table calculates balance tables from a ps.xgb object
Usage
bal.table(
x,
type = "overall",
n = 10,
decreasing = TRUE,
which.sort = "adj",
include.var = FALSE
)
Arguments
type
An optional character string requesting if balance should be summarized overall ("overall") or by strata ("strata"). Default: "overall".
n
An integer specifying the number of rows to print in the balance table. Default: 10.
decreasing
A logical value indicating if the balance table should be sorted in increasing or decreasing order.
which.sort
An optional character string indicating if the balance table
should be sorted by the adjusted ("adj") or unadjusted ("unadj") absolute standardized differences. Default: "adj".
include.var
A logical value indicating if the variable corresponding the the maximum absolute standardized difference
within strata should be included in the balance table. Only valid when strata=TRUE. Default: FALSE.
Examples
Run this code# NOT RUN {
# See vignette for examples.
# }
Run the code above in your browser using DataLab