Extract standardized mean differences from a (svy)TableOne object
Extract standardized mean differences from a (svy)TableOne object
Extracts standardized mean differences data as a vector or matrix from a (svy)TableOne object
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.
Returns
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.
Examples
## See examples for CreateTableOne and svyCreateTableOne