Creates a formatted table of cohort characteristics, to be included in publications or reports.

createCmTable1(
balance,
specifications = getDefaultCmTable1Specifications(),
beforeTargetPopSize,
beforeComparatorPopSize,
afterTargetPopSize,
afterComparatorPopSize,
beforeLabel = "Before matching",
afterLabel = "After matching",
targetLabel = "Target",
comparatorLabel = "Comparator",
percentDigits = 1,
stdDiffDigits = 2
)

## Arguments

balance A data frame created by the computeCovariateBalance funcion. 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.

## Value

A data frame with the formatted table 1.