Function creates an event window where the event ends
eventEnds(a, b, index = c("startDate", "endDate"))
the left side of the event window
the right side of the event window
specifying what part of the index we start looking for events either at the index start date or index enddate
An event window that can be used in a Capr cohort definition