CorEvitas Generic Table 1
generic_table1.Rd
This function creates a generic version of Table 1 by combining the demographics, health, disease, and treatment characteristics into one table with defined sections. If variables for each section are undefined, the function will provide a set of pre-defined variables for each section based on the defined registry.
Usage
generic_table1(
data,
strata = "",
registry,
numeric_stats = c("Nmiss", "meansd", "range"),
demographic_indices = NA,
health_indices = NA,
disease_indices = NA,
treat_indices = NA,
outcome_indices = NA
)
Arguments
- data
the dataset from which to create the table
- strata
variable by which to stratify the table
- registry
defined CorEvitas registry for which to define the variables. Current choices include: pso, ibd, ra.
- numeric_stats
summary statistics for numeric variables
- demographic_indices
variables to summarize in the demographics section.
- health_indices
variables to summarize in the health history/comorbidity section
- disease_indices
variables to summarize in disease characteristics section
- treat_indices
variables to summarize in treatment characteristics section
- outcome_indices
variables to summarize in the outcome characteristics section