summariseCohortAttrition: Summarise attrition associated with cohorts in a cohort table

View source: R/summariseCohortAttrition.R

summariseCohortAttritionR Documentation

Summarise attrition associated with cohorts in a cohort table

Description

Summarise attrition associated with cohorts in a cohort table

Usage

summariseCohortAttrition(cohort, cohortId = NULL)

Arguments

cohort

A cohort table in the cdm.

cohortId

A cohort definition id to restrict by. If NULL, all cohorts will be included.

Value

A summary of the attrition for the cohorts in the cohort table.

Examples


library(CohortCharacteristics)
library(dplyr, warn.conflicts = FALSE)

cdm <- mockCohortCharacteristics()

summariseCohortAttrition(cohort = cdm$cohort1) |>
  glimpse()

mockDisconnect(cdm)


CohortCharacteristics documentation built on Oct. 1, 2024, 5:08 p.m.