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

View source: R/ExtractSmd.R

ExtractSmdR Documentation

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.

Author(s)

Kazuki Yoshida

See Also

CreateTableOne, svyCreateTableOne

Examples


## See examples for CreateTableOne and svyCreateTableOne


tableone documentation built on April 15, 2022, 5:06 p.m.