Solution (source code)

= Solution

The group-specific estimated <cumulative hazard> jumps only when that group experiences the event, so
$$
\Delta\widehat H_j^{(1)}=\frac{u_j}{r_j^{(1)}},
\qquad
\Delta\widehat H_j^{(0)}=\frac{1-u_j}{r_j^{(0)}}.
$$