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. See visOmopResults::tableType() for allowed options. Default is "gt".

Value

A formatted table object with the summarised data.

Examples

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

result <- summariseObservationPeriod(observationPeriod = cdm$observation_period)

tableObservationPeriod(result = result)
Observation period ordinal Variable name Estimate name
CDM name
mockOmopSketch
all 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,885.87 (4,124.29)
median [Q25 - Q75] 2,015 [926 - 5,363]
1st Number subjects N 100
Duration in days mean (sd) 3,885.87 (4,124.29)
median [Q25 - Q75] 2,015 [926 - 5,363]
PatientProfiles::mockDisconnect(cdm = cdm) # }