Cohort method R package