Learn R Programming

twangContinuous (version 1.0.0)

bal.table: Compute the balance table.

Description

`bal.table` is a generic function for extracting balance tables from `ps.cont` objects, one for an unweighted analysis and one for the weighted analysis.

Usage

bal.table(x, digits = 3, ...)

Arguments

x

A `ps.cont` object

digits

Number of digits to round to. Default: 3

...

Additional arguments.

Value

Returns a data frame containing the balance information. * `unw` The unweighted correlation between the exposure and each covariate. * `wcor` The weighted correlation between the exposure and each covariate.

See Also

[ps.cont]

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
bal.table(test.mod)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab