View source: R/summariseObservationPeriod.R
summariseObservationPeriod | R Documentation |
Summarise the observation period table getting some overall statistics in a summarised_result object.
summariseObservationPeriod(
observationPeriod,
estimates = c("mean", "sd", "min", "q05", "q25", "median", "q75", "q95", "max",
"density"),
byOrdinal = TRUE,
ageGroup = NULL,
sex = FALSE,
dateRange = NULL
)
observationPeriod |
observation_period omop table. |
estimates |
Estimates to summarise the variables of interest (
|
byOrdinal |
Boolean variable. Whether to stratify by the ordinal observation period (e.g., 1st, 2nd, etc.) (TRUE) or simply analyze overall data (FALSE) |
ageGroup |
A list of age groups to stratify results by. |
sex |
Boolean variable. Whether to stratify by sex (TRUE) or not (FALSE). |
dateRange |
A vector of two dates defining the desired study period.
Only the |
A summarised_result object with the summarised data.
library(dplyr, warn.conflicts = FALSE)
cdm <- mockOmopSketch(numberIndividuals = 100)
result <- summariseObservationPeriod(cdm$observation_period)
result |>
glimpse()
PatientProfiles::mockDisconnect(cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.