Function that creates a cohort object

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