Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

Kazuki Yoshida

See Also

Examples

## See examples for CreateTableOne and svyCreateTableOne

tableone

Create 'Table 1' to Describe Baseline Characteristics with or without Propensity Score Weights

v0.12.0
GPL-2
Authors
Kazuki Yoshida [cre, aut] (<https://orcid.org/0000-0002-2030-3549>), Alexander Bartel [ctb, aut] (<https://orcid.org/0000-0002-1280-6138>), Jonathan J Chipman [ctb], Justin Bohn [ctb], Lucy DAgostino McGowan [ctb], Malcolm Barrett [ctb], Rune Haubo B Christensen [ctb], gbouzill [ctb]
Initial release
2020-07-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.