create.table.of.sample.characteristics: Create sample characteristics table

Usage Arguments

View source: R/create.table.of.sample.characteristics.r

Usage

1
2
3
4
create.table.of.sample.characteristics(data_for_table, data_dictionary,
  strata = NULL, vars = NULL, exclude_vars = NULL,
  include_overall = TRUE, include_missing_column = TRUE, digits = 1,
  save = FALSE)

Arguments

data_for_table

The data to use to create the table, no default.

data_dictionary

the data dictionary, no default.

strata

The strata variable, defaults to NULL.

vars

The variables to include in the table, defaults to NULL, in which case it is defined as names(data_dictionary)[sapply(data_dictionary, function(x) x$incl == "Yes")].

exclude_vars

Character vector of variable names to exclude from table, defaults to NULL.

include_overall

Logical and used only if strata is not NULL. defaults to TRUE in which case an overall column is also included.

include_missing_column

Logical. If TRUE a column is missing indicating the number (

\item

digitsInteger. Number of digits to use when rounding table entries. Defaults to 1.

\item

saveLogical. If TRUE the table object is also saved to disk as a .tex file. Defaults to FALSE.

Creates a table of sample characteristics


janejkanske/SupaLarna documentation built on July 29, 2020, 1:55 p.m.