Description Usage Arguments Value Examples
View source: R/figi_functions.R
Convenience wrapper function around table1 package. Function is limited but works for simple cases like distribution of covariates by outcome. Code includes workaround for adding p values that the package author described in vignette.
1 | create_descriptive_table(dat, outcome, exposure, covariates, covarCat)
|
outcome |
Outcome variable |
exposure |
Exposure variable |
covarCat |
String vector of categorical variables (factors) |
df |
Input data |
covarAll |
String vector of covariates to include in table |
table1 table (use in Rmarkdown)
1 | create_descriptive_table(gxe, outcome, aspirin, c('sex', 'age'), c('sex'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.