summarize_continuous: Calculates and formats summary statistics for continuous data

Description Usage Arguments Value

Description

Calculates and formats summary statistics for continuous data

Usage

1
2
summarize_continuous(data, variable, by, digits, var_label, stat_display,
  missing)

Arguments

data

data frame

variable

Character variable name in data that will be tabulated

by

Character variable name in data that Summary statistics for variable are stratified

digits

integer indicating the number of decimal places to be used.

var_label

string label

stat_display

String that specifies the format of the displayed statistics. The syntax follows glue inputs with n, N, and p as input options.

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".

Value

formatted summary statistics in a tibble.


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