Skip to contents

This function formats an arsenal tableby object into a data frame

Usage

format_tableby(
  tableby_data,
  condense = FALSE,
  effect_sizes = FALSE,
  numeric_diff = "cohens_d",
  cat_diff = "standardized_diff",
  labelTranslations = NULL,
  environ = NULL,
  ...
)

Arguments

tableby_data

arsenal tableby object

condense

collapse the "no" rows and pick preferred summary stat

effect_sizes

whether to include Cohen's D standardized differences within the table

numeric_diff

effect size to calculate for numeric variables. Default is cohens_d.

cat_diff

effect size to calculate for categorical variables. Default is standardized_diff.

labelTranslations

list of labels to pass to summary.tableby(). Intended to override existing labels. Default is NULL.

environ

the environment for which the tableby exists. Default is NULL.

...

additional arguments to pass to summary.tableby().

Value

data.frame