calculate_summary_stat: This function takes in the meta data table, and calls the...

Description Usage Arguments

Description

This function takes in the meta data table, and calls the appropriate summarize function.

Usage

1
2
calculate_summary_stat(data, variable, by, summary_type, dichotomous_value,
  var_label, stat_display, digits, class, missing)

Arguments

data

Data frame

variable

Character variable name in data that will be tabulated

by

Character variable name indata that Summary statistics for variable are stratified

summary_type

A list that includes specified summary types.

dichotomous_value

If the output is dichotomous, then this is the value

var_label

String label

stat_display

String that specifies the format of the displayed statistics. The syntax follows glue::glue() inputs with n, N, and p as input options. of the variable that will be displayed.

digits

integer indicating the number of decimal places to be used.

class

variable class. If class is NA, then all values are NA, and no summary statistics will be calculated.

missing

whether to include NA values in the table. missing controls if the table includes counts of NA values: the allowed values correspond to never ("no"), only if the count is positive ("ifany") and even for zero counts ("always"). Default is "ifany".


ddsjoberg/gtsummary-v0.1 documentation built on June 4, 2019, 7:48 a.m.