Description Usage Arguments Value
View source: R/demographics_table.R
Create a stratified demographics table
1 2 3 4 5 6 7 8 9 | strat_dem_tbl(
data,
outcome,
continuous.covariates = NULL,
continuous.tests = "wilcox.test",
categorical.covariates = NULL,
categorical.tests = "likelihood.ratio.chi.square",
strata.col = NULL
)
|
data |
A set of data with all covariates in separate columns and each row representing exactly 1 individual |
outcome |
Column containing indicating the primary outcome of interest (e.g. case/control or disease subtypes) |
continuous.covariates |
Columns containing continuous covariates of interest |
continuous.tests |
A vector of tests to run on the continuous covariates |
categorical.covariates |
Columns containing the categorical covariates of interest |
categorical.tests |
A vector of tests to run on categorical covariates |
strata.col |
Column containing the categories by which the data will be stratified |
A demographics table in the format typically implemented by the iMAGE study.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.