cohort: Function that creates a cohort object

View source: R/cohort.R

cohortR Documentation

Function that creates a cohort object

Description

Function that creates a cohort object

Usage

cohort(entry, attrition = NULL, exit = NULL, era = NULL)

Arguments

entry

the index event of the cohort

attrition

rules that restrict the cohort further, developing attrition

exit

the event where the person exits the cohort

era

Cohort era (collapse) logic created with the 'cohortEra' function

Value

an S4 Cohort class object describing the cohort definiton


OHDSI/Capr documentation built on Feb. 20, 2025, 4 a.m.