Start-stop recurrent-event data layout (source code)

= Start-stop recurrent-event data layout
{title2=$(\mathrm{start},\mathrm{stop}],\ \mathrm{event},\ \mathrm{id}$}

Represent each person's successive eligible episodes by separate left-open, right-closed intervals, retaining a common patient identifier and event-order information. A recurrence ends an interval and can be followed by another one; administrative censoring ends the final interval without an event. The row's entry time determines <risk set> membership. Multiple rows remain one patient history, with possible <within-patient recurrent-event dependence>.