View source: R/summariseCohortAttrition.R
summariseCohortAttrition | R Documentation |
Summarise attrition associated with cohorts in a cohort table
summariseCohortAttrition(cohort, cohortId = NULL)
cohort |
A cohort table in the cdm. |
cohortId |
A cohort definition id to restrict by. If NULL, all cohorts will be included. |
A summary of the attrition for the cohorts in the cohort table.
library(CohortCharacteristics)
library(dplyr, warn.conflicts = FALSE)
cdm <- mockCohortCharacteristics()
summariseCohortAttrition(cohort = cdm$cohort1) |>
glimpse()
mockDisconnect(cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.