View source: R/summariseCohortTiming.R
summariseCohortTiming | R Documentation |
Summarise timing between entries into cohorts in a cohort table
summariseCohortTiming(
cohort,
cohortId = NULL,
strata = list(),
restrictToFirstEntry = TRUE,
estimates = c("min", "q25", "median", "q75", "max", "density"),
density = lifecycle::deprecated()
)
cohort |
A cohort table in a cdm reference. |
cohortId |
A cohort definition id to restrict by. If NULL, all cohorts will be included. |
strata |
A list of variables to stratify results. These variables must have been added as additional columns in the cohort table. |
restrictToFirstEntry |
If TRUE only an individual's first entry per cohort will be considered. If FALSE all entries per individual will be considered. |
estimates |
Summary statistics to use when summarising timing. |
density |
deprecated. |
A summary of timing between entries into cohorts in the cohort table.
library(CohortCharacteristics)
library(dplyr, warn.conflicts = FALSE)
cdm <- mockCohortCharacteristics(numberIndividuals = 100)
summariseCohortTiming(cdm$cohort2) |>
glimpse()
mockDisconnect(cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.