This function takes in the meta data table, and calls the appropriate summarize function.
calculate_summary_stat(data, variable, by, summary_type, dichotomous_value,
var_label, stat_display, digits, class, missing)
Data frame
Character variable name in data
that will be tabulated
Character variable name indata
that Summary statistics for
variable
are stratified
A list that includes specified summary types.
If the output is dichotomous, then this is the value
String label
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.
integer indicating the number of decimal places to be used.
variable class. If class is NA, then all values are NA, and no summary statistics will be calculated.
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".