Skip to contents

Retrieves attrition information for specified cohorts from the database.

Usage

getCohortAttrition(
  connectionHandler,
  schema,
  cgTablePrefix = "cg_",
  databaseTable = "database_meta_data",
  cohortIds = NULL
)

Arguments

connectionHandler

A connection handler object.

schema

The database schema name.

cgTablePrefix

Prefix for cohort generator tables. Default is 'cg_'.

databaseTable

Name of the database metadata table. Default is 'database_meta_data'.

cohortIds

Optional vector of cohort IDs to filter.

Value

A tibble with attrition details for each cohort.