R/surv_composite_eff.R
surv.composite.eff.RdThis function estimates the potential cumulative incidence function based on efficient influence functions using composite variable strategy (competing risks data structure). Cox models are employed for survival models. This strategy adopts the first occurrence of either the intermediate or primary event as the event of interest.
surv.composite.eff(A, Time, cstatus, X = NULL, subset = NULL)A list including
Time points in the treated group.
Time points in the control group.
Estimated cumulative incidence function in the treated group.
Estimated cumulative incidence function in the control group.
Standard error of the estimated cumulative incidence function in the treated group.
Standard error of the estimated cumulative incidence function in the control group.
Time points in both groups.
Estimated treatment effect (difference in cumulative incidence functions).
Standard error of the estimated treatment effect.
P value of testing the treatment effect based on the efficient influence function of the restricted mean survival time lost by the end of study.