title: A fast routine for fitting Cox models with time varying effects of the covariates.
abstract: The S-plus and R statistical packages have implemented a counting process setup to estimate Cox models with time varying effects of the covariates. The data set has to be re-arranged in a repeated measurement setting: the time is divided into small time intervals where a single event occurs and for each time interval, the covariate values and outcome in the interval for each subject still under observation are stacked to a large data set. This is the known (Tstart,Tstop] algorithm implemented in Therneau's Survival library (S-plus), which has been ported into an R package by Thomas Lumley. However, the expansion of a data set leads to a larger set, which can be hard to handle even with fast modern computers. We propose the use of a fast and efficient algorithm, written in R, which works on the original data without the use of an expansion. The computations are done on the original data set, with significant less memory resources used. This improves the computational time by orders of magnitude. The algorithm can also fit reduced rank Cox models with time varying effects. We illustrate the method on a large data set of 2433 breast cancer patients, a smaller study of 358 ovarian cancer patients, and compare the computational times on simulated data of up to 10,000 cases with SAS proc phreg and survival package in R. For larger data sets our algorithm was several times faster, and was able to handle larger data sets then SAS and R.
authors.affiliation: Leiden University Medical Center, Department of Medical Statistics and Bio-informatics, P.O. Box 9604, 2300 RC, Leiden, The Netherlands. a.perperoglou@lumc.nl
authors.forename: Aris
authors.initials: A
authors.lastname: Perperoglou
authors.forename: Saskia
authors.initials: S
authors.lastname: le Cessie
authors.forename: Hans C
authors.initials: HC
authors.lastname: van Houwelingen
mesh_terms: D000465:Algorithms; D001943:Breast Neoplasms; D003627:Data Interpretation, Statistical; D005260:Female; D006801:Humans; D010051:Ovarian Neoplasms; D016016:Proportional Hazards Models; D016019:Survival Analysis; D013997:Time Factors