createTable1 | R Documentation |
Creates a formatted table of cohort characteristics, to be included in publications or reports. Allows for creating a table describing a single cohort, or a table comparing two cohorts.
createTable1( covariateData1, covariateData2 = NULL, cohortId1 = NULL, cohortId2 = NULL, specifications = getDefaultTable1Specifications(), output = "two columns", showCounts = FALSE, showPercent = TRUE, percentDigits = 1, valueDigits = 1, stdDiffDigits = 2 )
covariateData1 |
The covariate data of the cohort to be included in the table. |
covariateData2 |
The covariate data of the cohort to also be included, when comparing two cohorts. |
cohortId1 |
If provided, |
cohortId2 |
If provided, |
specifications |
Specifications of which covariates to display, and how. |
output |
The output format for the table. Options are |
showCounts |
Show the number of cohort entries having the binary covariate? |
showPercent |
Show the percentage of cohort entries having the binary covariate? |
percentDigits |
Number of digits to be used for percentages. |
valueDigits |
Number of digits to be used for the values of continuous variables. |
stdDiffDigits |
Number of digits to be used for the standardized differences. |
A data frame, or, when output = "list"
a list of two data frames.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.