Generating survival times to simulate Cox proportional hazards models with time‐varying covariates
Open Access
- 4 July 2012
- journal article
- research article
- Published by Wiley in Statistics in Medicine
- Vol. 31 (29), 3946-3958
- https://doi.org/10.1002/sim.5452
Abstract
Simulations and Monte Carlo methods serve an important role in modern statistical research. They allow for an examination of the performance of statistical procedures in settings in which analytic and mathematical derivations may not be feasible. A key element in any statistical simulation is the existence of an appropriate data‐generating process: one must be able to simulate data from a specified statistical model. We describe data‐generating processes for the Cox proportional hazards model with time‐varying covariates when event times follow an exponential, Weibull, or Gompertz distribution. We consider three types of time‐varying covariates: first, a dichotomous time‐varying covariate that can change at most once from untreated to treated (e.g., organ transplant); second, a continuous time‐varying covariate such as cumulative exposure at a constant dose to radiation or to a pharmaceutical agent used for a chronic condition; third, a dichotomous time‐varying covariate with a subject being able to move repeatedly between treatment states (e.g., current compliance or use of a medication). In each setting, we derive closed‐form expressions that allow one to simulate survival times so that survival times are related to a vector of fixed or time‐invariant covariates and to a single time‐varying covariate. We illustrate the utility of our closed‐form expressions for simulating event times by using Monte Carlo simulations to estimate the statistical power to detect as statistically significant the effect of different types of binary time‐varying covariates. This is compared with the statistical power to detect as statistically significant a binary time‐invariant covariate. Copyright © 2012 John Wiley & Sons, Ltd.Keywords
This publication has 14 references indexed in Scilit:
- Simulating competing risks data in survival analysisStatistics in Medicine, 2009
- An easy mathematical proof showed that time-dependent bias inevitably leads to biased effect estimationJournal of Clinical Epidemiology, 2008
- The impact of time‐dependent bias in proportional hazards modellingStatistics in Medicine, 2008
- Immortal Time Bias in PharmacoepidemiologyAmerican Journal of Epidemiology, 2007
- Comparison of algorithms to generate event times conditional on time‐dependent covariatesStatistics in Medicine, 2007
- Quantifying the impact of survivor treatment bias in observational studiesJournal of Evaluation in Clinical Practice, 2006
- Generating survival times to simulate Cox proportional hazards modelsStatistics in Medicine, 2005
- Development and validation of the ontario acute myocardial infarction mortality prediction rulesJournal of the American College of Cardiology, 2001
- Variate generation for accelerated life and proportional hazards models with time dependent covariatesStatistics & Probability Letters, 1990
- Technical Note—Variate Generation for Accelerated Life and Proportional Hazards ModelsOperations Research, 1987