Function creates an event window where the event starts

eventStarts(a, b, index = c("startDate", "endDate"))

Arguments

a

the left side of the event window

b

the right side of the event window

index

specifying what part of the index we start looking for events either at the index start date or index enddate

Value

An event window that can be used in a Capr cohort definition