Creates a formatted table of cohort characteristics, to be included in publications or reports.
createCmTable1(
balance,
specifications = getDefaultCmTable1Specifications(),
beforeTargetPopSize = NULL,
beforeComparatorPopSize = NULL,
afterTargetPopSize = NULL,
afterComparatorPopSize = NULL,
beforeLabel = "Before matching",
afterLabel = "After matching",
targetLabel = "Target",
comparatorLabel = "Comparator",
percentDigits = 1,
stdDiffDigits = 2
)
A data frame created by the computeCovariateBalance
function.
Specifications of which covariates to display, and how.
The number of people in the target cohort before matching/stratification/trimming, to mention in the table header. If not provide, no number will be included in the header.
The number of people in the comparator cohort before matching/stratification/trimming, to mention in the table header. If not provide, no number will be included in the header.
The number of people in the target cohort after matching/stratification/trimming, to mention in the table header. If not provide, no number will be included in the header.
The number of people in the comparator cohort after matching/stratification/trimming, to mention in the table header. If not provide, no number will be included in the header.
Label for identifying columns before matching / stratification / trimming.
Label for identifying columns after matching / stratification / trimming.
Label for identifying columns of the target cohort.
Label for identifying columns of the comparator cohort.
Number of digits to be used for percentages.
Number of digits to be used for the standardized differences.
A data frame with the formatted table 1.