Skip to contents

[Experimental]

Usage

tableCohortOverlap(
  result,
  uniqueCombinations = TRUE,
  type = "gt",
  header = c("variable_name"),
  groupColumn = c("cdm_name"),
  hide = c("variable_level")
)

Arguments

result

A summariseOverlapCohort result.

uniqueCombinations

Whether to display unique combinations reference - comparator.

type

Type of table. Check supported types with visOmopResults::tableType().

header

Columns to use as header. See options with tidyColumns(result).

groupColumn

Columns to group by. See options with tidyColumns(result).

hide

Columns to hide from the visualisation. See options with tidyColumns(result).

Value

A formatted table of the summariseOverlapCohort result.

Examples

# \donttest{
library(CohortCharacteristics)
cdm <- mockCohortCharacteristics()
overlap <- summariseCohortOverlap(cdm$cohort2)
tableCohortOverlap(overlap)
#> ! Results have not been suppressed.
Cohort name reference Cohort name comparator Estimate name
Variable name
In both cohorts Only in reference cohort Only in comparator cohort
PP_MOCK
cohort_1 cohort_2 N (%) 0 (0.00%) 3 (50.00%) 3 (50.00%)
cohort_3 N (%) 0 (0.00%) 3 (42.86%) 4 (57.14%)
cohort_2 cohort_3 N (%) 0 (0.00%) 3 (42.86%) 4 (57.14%)
mockDisconnect(cdm = cdm) # }