Skip to contents

Create a visual table from a summariseObservationPeriod() result.

Usage

tableObservationPeriod(result, type = "gt")

Arguments

result

A summarised_result object.

type

Type of formatting output table, either "gt" or "flextable".

Value

A gt or flextable object with the summarised data.

Examples

# \donttest{
cdm <- mockOmopSketch(numberIndividuals = 100)

result <- summariseObservationPeriod(cdm$observation_period)

tableObservationPeriod(result)
#> ! Results have not been suppressed.
Observation period ordinal Variable name Estimate name
CDM name
mockOmopSketch
overall Number records N 100
Number subjects N 100
Records per person mean (sd) 1.00 (0.00)
median [Q25 - Q75] 1 [1 - 1]
Duration in days mean (sd) 4,041.16 (4,224.41)
median [Q25 - Q75] 2,178 [648 - 6,662]
Days to next observation period mean (sd) -
median [Q25 - Q75] -
1st Number subjects N 100
Duration in days mean (sd) 4,041.16 (4,224.41)
median [Q25 - Q75] 2,178 [648 - 6,662]
Days to next observation period mean (sd) -
median [Q25 - Q75] -
PatientProfiles::mockDisconnect(cdm) # }