Function to replicate the rows so that each patients' follow-up is split according to all event times (times parameter) up to each patient's end time
Useful links