This repository contains R code for An Online Updating Approach
for Testing the Proportional Hazards Assumption with Streams of
Survival Data
by Yishu Xue, HaiYing Wang, Jun Yan and Elizabeth D. Schifano.
-
bczph.cee.Rimplements the proposed online updating cumulative test statistic with the matrices and Schoenfeld residuals evaluated at the cumulative estimating equation (CEE) estimators of beta. -
bczph.cuee.Rimplements the proposed online updating cumulative test statistic with the matrices and Schoenfeld residuals evaluated at the cumulatively updated estimating equation (CUEE) estimators of beta. -
bwzph.cee.Rimplements the proposed online updating window test statistic with the matrices and Schoenfeld residuals evaluated at the CEE estimators of beta. -
simulate.survival.data.Rcontains two functions to simulate survival data, one for the proportional hazards model with a constant baseline hazard function, and another for the frailty model. -
example.Rprovides an example how online updating can be performed with simulated data whose structure resembles that of SEER data. -
simulated_survdata.csvcontains a total of 1,000,000 simulated observations with three covariates,Age,SexandBlack. The average censoring rate is 50.2%.