Cause-specific cumulative incidence and subdistribution hazard from competing event records
c(t_i, e_i) = (S(t), F_1(t), F_2(t), H_1(t), H_2(t), lambda_1(t)); F_1(t) = integral_0^t S(u) * h_1(u) du
Takes records of the time to each patient's first event, with the event type or a censoring flag, and returns event-free survival S(t), the cumulative incidence F_1(t) and F_2(t) of each cause, the cumulative cause-specific hazards H_1(t) and H_2(t) and the subdistribution hazard lambda_1(t). The constant-hazard closed form of the cumulative incidence is live as HE-FM-TP-004 with Delta read as t, and its k-exit form adds only more terms, so neither is restated. The survival part of each step takes the form of the Kaplan-Meier step HE-FM-ADMC-002 with all causes counted as events, and the error of one minus Kaplan-Meier for one cause is HE-ER-AR-002. For two groups, HE-FM-COMR-004 carries the factor in HE-FM-COMR-003 to the subdistribution relative hazard sdRH(t). Notation follows the Competing Risks article.
Cumulative incidence step of each cause at an observed event time
S = S_prev * (1 - (d_1 + d_2) / n); F_1 = F_1_prev + S_prev * d_1 / n; F_2 = F_2_prev + S_prev * d_2 / n
Nelson-Aalen step of each cumulative cause-specific hazard
H_1 = H_1_prev + d_1 / n; H_2 = H_2_prev + d_2 / n; H_all = H_1 + H_2
Subdistribution hazard from the cause-specific hazard, competing cumulative incidence and event-free survival
lambda_1 = h_1 / (1 + F_2 / S)
Subdistribution relative hazard implied by a cause-specific relative hazard at a given time
A_1 = 1 + F_12 / S_1; A_0 = 1 + F_02 / S_0; sdRH = csRH * A_0 / A_1
