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
Only in reference cohort Only in comparator cohort In both cohorts
PP_MOCK
cohort_1 cohort_2 N (%) 0 (0.00%) 0 (0.00%) 0 (0.00%)
cohort_3 N (%) 0 (0.00%) 0 (0.00%) 0 (0.00%)
cohort_2 cohort_3 N (%) 0 (0.00%) 0 (0.00%) 0 (0.00%)
mockDisconnect(cdm = cdm) # }