window_intersect: window_intersect

View source: R/RcppExports.R

window_intersectR Documentation

window_intersect

Description

given two intervals, figure out the intersection between the first and the second

NOTE that the intervals are treated as half-open (start,finish] so that an event that happens exactly at time b is counted in (a,b] but not in (b, c]

Usage

window_intersect(a, b)

Arguments

a

the first window; here, we use all three components (start, finish, event)

b

the second window; here, we only use the start and finish time, and ignore any events

Details

TODO - should write a more detailed description

Value

a window containing the exposure and events from a that takes place during the time given by b; also, if a has an event and it takes place during b, it is included


dfeehan/siblingsurvival documentation built on June 10, 2025, 11:40 p.m.