R/window.R
duringInterval.Rd
Function that creates an eventAperture an opening where an event can occur relative to the index event
duringInterval(
startWindow,
endWindow = NULL,
restrictVisit = FALSE,
ignoreObservationPeriod = FALSE
)
the starting window where an event can occur
the end window of where an event can occur. This parameter is optional
a logical toggle specifying whether the event should occur on the same visit
a logical toggle specifying whether we can consider events outside the observation period
An event aperture that can be used in a Capr cohort definition