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) 3,366.31 (3,085.10)
median [Q25 - Q75] 2,343 [937 - 4,880]
Days to next observation period mean (sd) -
median [Q25 - Q75] -
1st Number subjects N 100
Duration in days mean (sd) 3,366.31 (3,085.10)
median [Q25 - Q75] 2,343 [937 - 4,880]
Days to next observation period mean (sd) -
median [Q25 - Q75] -
PatientProfiles::mockDisconnect(cdm) # }