bal.table: Balance tables for 'twangRDC'

Description Usage Arguments Value Examples

View source: R/bal.table.r

Description

bal.table calculates balance tables from a ps.xgb object

Usage

1
2
3
4
5
6
7
8
bal.table(
  x,
  type = "overall",
  n = 10,
  decreasing = TRUE,
  which.sort = "adj",
  include.var = FALSE
)

Arguments

x

A ps.xgb object.

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.

Value

Returns a table.

Examples

1
2
# See vignette for examples.
  

twangRDC documentation built on May 18, 2021, 1:07 a.m.