getCohortSubsetAttrition: Get cohort subset attrition

View source: R/CohortQueries.R

getCohortSubsetAttritionR Documentation

Get cohort subset attrition

Description

Retrieves attrition information for specified cohort subsets from the database.

Usage

getCohortSubsetAttrition(
  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 data.frame with attrition details for each cohort subset.

See Also

Other Cohorts: getCohortAttrition(), getCohortCounts(), getCohortDefinitions(), getCohortInclusionRules(), getCohortInclusionStats(), getCohortInclusionSummary(), getCohortMeta(), getCohortSubsetDefinitions(), getSubsetText(), processCohortDefinitionsForQuarto(), processCohorts(), restrictCohortDefinitionsForQuarto()


OhdsiReportGenerator documentation built on Nov. 14, 2026, 1:09 a.m.