tableone (version 0.9.3)

ExtractSmd: Extract standardized mean differences from a (svy)TableOne object

Description

Extracts standardized mean differences data as a vector or matrix from a (svy)TableOne object

Usage

ExtractSmd(x, varLabels = FALSE)

Arguments

x

A stratified (svy)TableOne object containing standardized mean differences.

varLabels

Whether to replace variable names with variable labels obtained from labelled::var_label() function.

Value

A vector or matrix containing the average standardized mean differences (if more than two contrasts exist) as well as the all possible pairwise standardized mean differences. Variables are ordered in the same order as the printed table.

See Also

CreateTableOne, svyCreateTableOne

Examples

Run this code
# NOT RUN {
## See examples for CreateTableOne and svyCreateTableOne

# }

Run the code above in your browser using DataLab