generateCohortSet function

Generate a set of cohorts