CohortConstructor0.6.1 package

Build and Manipulate Study Cohorts Using a Common Data Model

addCohortTableIndex

Add an index to a cohort table

atFirstDoc

Helper for consistent documentation of arguments in atFirstfunctions...

baseCohortDoc

Helper for consistent documentation of conceptCohort and `measuremen...

benchmarkCohortConstructor

Run benchmark of CohortConstructor package

cdmDoc

Helper for consistent documentation of cdm.

CohortConstructor-package

CohortConstructor: Build and Manipulate Study Cohorts Using a Common D...

cohortDoc

Helper for consistent documentation of cohort.

cohortIdModifyDoc

Helper for consistent documentation of cohortId.

cohortIdSubsetDoc

Helper for consistent documentation of cohortId.

collapseCohorts

Collapse cohort entries using a certain gap to concatenate records.

collapseDoc

Helper for consistent documentation of collapse.

columnDateDoc

Helper for consistent documentation of dateColumns and `returnReason...

conceptCohort

Create cohorts based on a concept set

conceptSetDoc

Helper for consistent documentation of conceptSet.

copyCohorts

Copy a cohort table

daysDoc

Helper for consistent documentation of days.

deathCohort

Create cohort based on the death table

demographicsCohort

Create cohorts based on patient demographics

entryAtFirstDate

Update cohort start date to be the first date from of a set of column ...

entryAtLastDate

Set cohort start date to the last of a set of column dates

exitAtDeath

Set cohort end date to death date

exitAtFirstDate

Set cohort end date to the first of a set of column dates

exitAtLastDate

Set cohort end date to the last of a set of column dates

exitAtObservationEnd

Set cohort end date to end of observation

gapDoc

Helper for consistent documentation of gap.

intersectCohorts

Generate a combination cohort set between the intersection of differen...

keepOriginalCohortsDoc

Helper for consistent documentation of keepOriginalCohorts.

matchCohorts

Generate a new cohort matched cohort

measurementCohort

Create measurement-based cohorts

mockCohortConstructor

Function to create a mock cdm reference for CohortConstructor

nameDoc

Helper for consistent documentation of name.

padCohortDate

Set cohort start or cohort end

padCohortEnd

Add days to cohort end

padCohortStart

Add days to cohort start

reexports

Objects exported from other packages

renameCohort

Utility function to change the name of a cohort.

requireAge

Restrict cohort on age

requireCohortIntersect

Require cohort subjects are present (or absence) in another cohort

requireConceptIntersect

Require cohort subjects to have (or not have) events of a concept list

requireDemographics

Restrict cohort on patient demographics

requireDemographicsDoc

Helper for consistent documentation of arguments in `requireDemographi...

requireDuration

Require cohort entries last for a certain number of days

requireFullContributionDoc

Helper for consistent documentation of requireFullContribution.

requireFutureObservation

Restrict cohort on future observation

requireInDateRange

Require that an index date is within a date range

requireIntersectDoc

Helper for consistent documentation of arguments in requireIntersect...

requireIsEntry

Restrict cohort to specific entry

requireIsFirstEntry

Restrict cohort to first entry

requireIsLastEntry

Restrict cohort to last entry per person

requireMinCohortCount

Filter cohorts to keep only records for those with a minimum amount of...

requirePriorObservation

Restrict cohort on prior observation

requireSex

Restrict cohort on sex

requireTableIntersect

Require cohort subjects are present in another clinical table

sampleCohorts

Sample a cohort table for a given number of individuals.

softValidationDoc

Helper for consistent documentation of .softValidation.

stratifyCohorts

Create a new cohort table from stratifying an existing one

subsetCohorts

Generate a cohort table keeping a subset of cohorts.

trimDemographics

Trim cohort on patient demographics

trimDuration

Trim cohort dates to be within a certain interval of days

trimToDateRange

Trim cohort dates to be within a date range

unionCohorts

Generate cohort from the union of different cohorts

windowDoc

Helper for consistent documentation of window.

yearCohorts

Generate a new cohort table restricting cohort entries to certain year...

Create and manipulate study cohorts in data mapped to the Observational Medical Outcomes Partnership Common Data Model.

  • Maintainer: Edward Burn
  • License: Apache License (>= 2)
  • Last published: 2025-12-23