Enrolment pathways analysis (R)