Performing cohort analysis