Time-varying covariates and coefficients in Cox regression models
- PMID: 29955581
- PMCID: PMC6015946
- DOI: 10.21037/atm.2018.02.12
Time-varying covariates and coefficients in Cox regression models
Abstract
Time-varying covariance occurs when a covariate changes over time during the follow-up period. Such variable can be analyzed with the Cox regression model to estimate its effect on survival time. For this it is essential to organize the data in a counting process style. In situations when the proportional hazards assumption of the Cox regression model does not hold, we say that the effect of the covariate is time-varying. The proportional hazards assumption can be tested by examining the residuals of the model. The rejection of the null hypothesis induces the use of time varying coefficient to describe the data. The time varying coefficient can be described with a step function or a parametric time function. This article aims to illustrate how to carry out statistical analyses in the presence of time-varying covariates or coefficients with R.
Keywords: Cox proportional hazards; Schoenfeld residuals; time dependent; time varying; time-to-event.
Conflict of interest statement
Conflicts of Interest: The authors have no conflicts of interest to declare.
Figures




Similar articles
-
Comparison of Aalen's additive and Cox proportional hazards models for breast cancer survival: analysis of population- based data from British Columbia, Canada.Asian Pac J Cancer Prev. 2011;12(11):3113-6. Asian Pac J Cancer Prev. 2011. PMID: 22393999
-
Bayesian analysis for partly linear Cox model with measurement error and time-varying covariate effect.Stat Med. 2022 Oct 15;41(23):4666-4681. doi: 10.1002/sim.9531. Epub 2022 Jul 28. Stat Med. 2022. PMID: 35899596 Free PMC article.
-
Reduced-rank hazard regression for modelling non-proportional hazards.Stat Med. 2006 Aug 30;25(16):2831-45. doi: 10.1002/sim.2360. Stat Med. 2006. PMID: 16158396
-
Using fractional polynomials and restricted cubic splines to model non-proportional hazards or time-varying covariate effects in the Cox regression model.Stat Med. 2022 Feb 10;41(3):612-624. doi: 10.1002/sim.9259. Epub 2021 Nov 21. Stat Med. 2022. PMID: 34806210 Free PMC article.
-
Time-dependent covariates in the Cox proportional-hazards regression model.Annu Rev Public Health. 1999;20:145-57. doi: 10.1146/annurev.publhealth.20.1.145. Annu Rev Public Health. 1999. PMID: 10352854 Review.
Cited by
-
Prevalence, causes, and clinical associations of anemia in patients with systemic sclerosis: A cohort study.J Scleroderma Relat Disord. 2024 Oct;9(3):203-209. doi: 10.1177/23971983241238921. Epub 2024 Mar 26. J Scleroderma Relat Disord. 2024. PMID: 39493735
-
Thicker polyethylene inserts (≥ 13 mm) increase the risk for early failure after primary cruciate-retaining total knee arthroplasty (TKA): a single-centre study of 7643 TKAs.Knee Surg Sports Traumatol Arthrosc. 2023 Mar;31(3):1018-1025. doi: 10.1007/s00167-022-07189-8. Epub 2022 Oct 7. Knee Surg Sports Traumatol Arthrosc. 2023. PMID: 36205761 Free PMC article.
-
Testing the proportional hazards assumption in cox regression and dealing with possible non-proportionality in total joint arthroplasty research: methodological perspectives and review.BMC Musculoskelet Disord. 2021 May 28;22(1):489. doi: 10.1186/s12891-021-04379-2. BMC Musculoskelet Disord. 2021. PMID: 34049528 Free PMC article.
-
Analysis of Prognostic Factors of Low-Grade Gliomas in Adults Using Time-Dependent Competing Risk Models: A Population Study Based on the Surveillance, Epidemiology, and End Results Database.Cancer Control. 2022 Jan-Dec;29:10732748221143388. doi: 10.1177/10732748221143388. Cancer Control. 2022. PMID: 36461936 Free PMC article.
-
Advanced statistical methods for hazard modeling in cardiothoracic surgery: a comprehensive review of techniques and approaches.Indian J Thorac Cardiovasc Surg. 2024 Sep;40(5):633-644. doi: 10.1007/s12055-024-01799-2. Epub 2024 Jul 31. Indian J Thorac Cardiovasc Surg. 2024. PMID: 39156066
References
-
- Collett D. Modelling Survival Data in Medical Research. 3rd ed. Boca Raton: Chapman and Hall/CRC, 2014.
-
- Adeleke KA, Abiodun AA, Ipinyomi RA. Semi-parametric non-proportional hazard model with time varying covariate. Womens Health Journal 2015;14:68-87.
-
- Kalbfleisch JD, Prentice RL. The Statistical Analysis of Failure Time Data. Hoboken, NJ, USA: John Wiley & Sons, Inc., 2002.
Publication types
LinkOut - more resources
Full Text Sources
Other Literature Sources
Medical