Slides forward through a logical vector to find the number of steps until the first TRUE value. Useful for time-to-event calculations in longitudinal registry data.
See also
[any_events_prior_to()] for checking if events occurred in prior window
Other survival_analysis:
any_events_prior_to()
