Book Chapter
TwoTimeScales: an R-package for smoothing hazards with two time scales
In: Bergherr, E., Groll, A., Mayr, A. (Eds.): Proceedings of the 37th International Workshop on Statistical Modelling: Dortmund, Germany, 17-21 July, 2023, 390–393
Dortmund, TU Dortmund University (2023)
ISBN 978-3-947323-42-5
Abstract
We introduce the R-package TwoTimeScales for the analysis of time to event data with two time scales. The package provides tools to estimate a smooth hazard that varies over two time scales and also, if covariates are available, to estimate a proportional hazards model with such a two-dimensional baseline hazard. We describe the features of the package and illustrate options for presentation of results. As an example we analyse mortality of patients with a recurrence of colon cancer.