Function to create an exit based on exit based on the end of a continuous drug exposure

fixedExit(index = c("startDate", "endDate"), offsetDays)

Arguments

index

specification of event date to offset. Can be either startDate or endDate

offsetDays

an number specifying the days to offset from the event date. Will coerce to an integer

Value

a fixed Duration exit S4 object used to define the cohort exit as the end of a specified time