Methods to Analyze Time-to-Event Data: The Cox Regression Analysis (2024)

  • Journal List
  • Oxid Med Cell Longev
  • v.2021; 2021
  • PMC8651375

As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsem*nt of, or agreement with, the contents by NLM or the National Institutes of Health.
Learn more: PMC Disclaimer | PMC Copyright Notice

Methods to Analyze Time-to-Event Data: The Cox Regression Analysis (1)

Oxidative Medicine and Cellular Longevity

Oxid Med Cell Longev. 2021; 2021: 1302811.

Published online 2021 Nov 30. doi:10.1155/2021/1302811

PMCID: PMC8651375

PMID: 34887996

Samar Abd ElHafeez,Methods to Analyze Time-to-Event Data: The Cox Regression Analysis (2)1 Graziella D'Arrigo,2 Daniela Leonardis,2 Maria Fusaro,3 Giovanni Tripepi,1 and Stefanos Roumeliotis4

Author information Article notes Copyright and License information PMC Disclaimer

Associated Data

Data Availability Statement

Abstract

The Cox model is a regression technique for performing survival analyses in epidemiological and clinical research. This model estimates the hazard ratio (HR) of a given endpoint associated with a specific risk factor, which can be either a continuous variable like age and C-reactive protein level or a categorical variable like gender and diabetes mellitus. When the risk factor is a continuous variable, the Cox model provides the HR of the study endpoint associated with a predefined unit of increase in the independent variable (e.g., for every 1-year increase in age, 2 mg/L increase in C-reactive protein). A fundamental assumption underlying the application of the Cox model is proportional hazards; in other words, the effects of different variables on survival are constant over time and additive over a particular scale. The Cox regression model, when applied to etiological studies, also allows an adjustment for potential confounders; in an exposure-outcome pathway, a confounder is a variable which is associated with the exposure, is not an effect of the exposure, does not lie in the causal pathway between the exposure and the outcome, and represents a risk factor for the outcome.

1. Introduction

Survival analysis refers to a family of statistical techniques aimed at analyzing “time-to-event” data and/or assessing the relationship between a given exposure and the occurrence of an outcome after a follow-up period among a cohort of individuals [1]. The Kaplan–Meier (KM) method explores the survival of a population under investigation and/or tests differences in the crude cumulative survival between exposure groups, with a graphical representation of the endpoint occurrence as a function of time [2]. Nonetheless, the KM method has important limitations. First, it does not provide an effect estimate (i.e., a relative risk) or the related confidence interval to compare the survival in different patient groups [3]. Second, it does not permit the adjustment of confounders in etiological research or predictors in prognostic research [4]. Finally, the KM method requires data categorization, so calculation of the incremental increase (or decrease) in the relative risk of a given event associated with one unit (or any number of units) increase in the candidate risk factor is not possible [5]. These limitations can be approached by Cox regression analysis, in which the dependent variable is the incidence rate of a specific event and the independent variables are risk factors or predictors that the investigators use to explain or predict the study endpoint.

In 1972, Sir David Cox wrote an article describing an extension of KM analysis to incorporate patients' baseline characteristics, such as age, clinical history, or exposure to certain factors, and time [6]. The Cox regression model is also known as proportional hazards regression analysis. It is a semiparametric method because there is no assumption about the distribution of survival times, but it assumes that the effects of different variables on survival are constant over time (proportionality assumption) and additive over a particular scale [7].

A preliminary step when testing the relationship between a candidate risk factor and the incidence rate of an endpoint using the Cox regression model is to assess the proportionality assumption of the risk linked to the same risk factor; such an assumption considers that the hazard ratio (HR) associated with the risk factor must be constant over time. For example, if the risk factor is a binary variable (e.g., the presence of diabetes) and the survival curves of the two groups are crossed, it implies that the HR (diabetic vs. nondiabetic patients) is not constant over time [8].

The HR and its 95% confidence interval are calculated from the Cox regression model. The HR is the ratio of the two hazard rates of a given event in treated versus untreated patients or exposed versus unexposed individuals, as well as the magnitude of the hazard rate change when a given continuous variable (e.g., age or systolic blood pressure) increases by, for example, one or two units over a continuous scale [9]. The purpose of this article is to explain the basic concepts of Cox regression analysis and its application to clinical research by providing a series of examples derived from the literature.

1.1. The Cox Equation

The Cox regression model is based on the hazard function. Mathematically, the Cox model is written as follows [10]:

Ht=H0t×expb1x1+b2x2+..bkxk.

(1)

where x1xk represents the predictor variables and H0(t) is the baseline hazard at time t, which is the hazard of an individual having the predictors set to zero. By computing the exponential of the regression coefficient “b1bk” (directly provided by the software), we can calculate the HR of a given risk factor or predictor in the model. For example, if the risk factor x1 is dichotomous and it is codified “1” if present (exposed) and “0” if absent (unexposed), the expression exp(bi) (where exp = 2.7183) can be interpreted as the estimated increase in the HR of the event in patients with the risk factor compared to those without the same risk factor; this is applied by assuming exposed and unexposed patients are similar for all the other covariates included in the model. If the risk factor is a continuous variable and it is directly related to the incidence rate of a given event (e.g., age in years as a risk factor for mortality), the HR will be interpreted as an increase in the hazard rate of death due to a 1-year increase in age. Thus, if a study reports a HR of 1.03 for age, it implies that the hazard rate of the event of interest increases by 3% for each year increase in age. If the risk factor is a continuous variable and it is inversely related to the incidence rate of a given event (e.g., albumin in g/dL, a protective biomarker of nutritional status, as a predictor of death), the HR associated with albumin is interpreted as the decrease of the hazard rate of the event due to a 1 g/dL increase in albumin. Thus, if a study reports a HR of albumin of 0.85, it implies that the hazard rate of the event decreases by 15% for each 1 g/dL increase in albumin.

2. The Hazard Ratio and Incidence Rate Ratio

We interpret the HR similarly to the incidence rate ratio (IRR); thus, the best way to describe this measure is to provide an example of an IRR calculation [11]. Consider a hypothetical randomized clinical trial to test the efficacy of a generic drug X on 1-year mortality among cardiovascular disease patients. For simplicity, we will explain this concept based on data from five patients in the intervention arm and five patients in the control arm. During the follow-up period (1 year), in the control arm, patient B was lost to follow-up, patient C died after 6 months, and patients A, D, and E completed the follow-up period (Figure 1(a)). In the intervention arm, patient G was lost to follow-up, patient H died at the end of the study (i.e., after 1 year), and patients F, I, and L completed the follow-up period (Figure 1(b)). To assess the risk of mortality in each study arm, we calculated the probability of death in both the control (1/5 = 0.20 or 20%) and the active (1/5 = 0.20 or 20%) arms; for this, the risk ratio will equal to 1. It is evident that the risk ratio calculation does not capture the fact that the event of interest (death) occurred later in the active (at 1 year) than in the control arm (at 6 months). Therefore, we should calculate the incidence rate to estimate the frequency of death in the two study groups. In this case, the incidence rate of death in the two study arms is the ratio between the number of deaths and the total person-time (i.e., the sum of the times of observation of all patients) in each arm. The incidence rate among the control group is 1/4 = 0.25 deaths/person-year (i.e., 25 deaths per 100 persons-year), and the incidence rate among the intervention group is 1/4.5 = 0.22 deaths per person-year (i.e., 22 deaths per 100 persons-year). The incidence rate calculation shows that mortality occurs earlier in the control group compared to in the active group; this is illustrated by the higher incidence rate among control patients than active patients (25 versus 22 deaths per 100 persons-year). The IRR is calculated by dividing the incidence rate of death among the intervention group and the incidence rate of death among the control group (22/25 = 0.88); the IRR of 0.88 means that the probability of death occurring first is 12% lower among patients in the intervention arm than in those in the control arm. Given the similarity between the two measures, the HR can be interpreted in exactly the same way as the IRR.

Open in a separate window

Figure 1

Hypothetical example of an incidence rate calculation (see text for more details).

3. Example 1

A hypothetical cohort study was performed on 200 chronic kidney disease patients aged ≥65 years. We aimed to calculate the HR of myocardial infarction among patients with high oxidative-low-density lipoprotein (LDL) versus low oxidative-LDL and test whether this relationship is independent of a history of diabetes mellitus (see Table 1).

Table 1

Baseline characteristics of 200 chronic kidney disease patients.

PatientsAge (years)Oxidative-LDL (0: low and 1: high)Time (year)Myocardial infarction (0: no and 1: yes)Diabetes mellitus (0: no and 1: yes)
16501500
2800901
3671111
49011611
57712000
….…..…..…..…..…..
200830301

Open in a separate window

The hazard rate of myocardial infarction as a function of oxidative-LDL, using the Cox equation, can be written as follows:

Ht=H0texpbsmoking0=no;1=yes.

(2)

H0t refers to the risk component due to time, and exp[boxidativeLDL] is the risk component due to oxidative-LDL (codified as “0” for low oxidative-LDL and “1” for high oxidative-LDL). H0t and the “b” coefficient are estimated by the maximum likelihood function [12]. In this example, we are interested in knowing the HR of myocardial infarction in patients with high versus low oxidative-LDL, so we focus on the “b” coefficient and ignore H0t. In our example, the value of “b” (as calculated using statistical software) is 1.69.

By applying the general formula, we can calculate the HR using the following equation:

HR=expb,HR=2.71831.69,HR=5.44.

(3)

This means that the HR of myocardial infarction is 5.44 times higher in patients with high oxidative-LDL versus those with low oxidative-LDL. Then, we test the potential confounding effect of diabetes mellitus on this relationship. Diabetes is a confounder because it is associated with both death (patients with high oxidative-LDL have a higher risk of mortality compared to those with low oxidative-LDL) and oxidative-LDL (i.e., the prevalence of diabetes is significantly higher in patients with high oxidative-LDL than those with low oxidative-LDL). The Cox equation now includes two variables: oxidative-LDL and diabetes:

Ht=H0texpb1oxidativeLDL+b2diabetes.

(4)

The introduction of diabetes into the Cox model including oxidative-LDL yields a reduction in the regression coefficient of oxidative-LDL from 1.69 to 0.92. In the same equation, the regression coefficient of diabetes is 0.18.

Thus, the HR of oxidative-LDL adjusted for diabetes is calculated as follows:

HRoxidativeLDL=2.71830.92=2.51.

(5)

Therefore, the diabetes-adjusted HR of myocardial infarction is 2.5 times higher in patients with high oxidative-LDL than in those with low oxidative-LDL.

By using the same formula, we can calculate the oxidative-LDL-adjusted HR of diabetes.

HRdiabetes mellitus=2.71830.18=1.20.

(6)

Thus, the oxidative-LDL-adjusted HR of myocardial infarction is 20% higher in diabetics than in nondiabetics.

4. Example 2

A prospective population-based study by Spoto et al. [13] was conducted to assess the effect of gamma glutamyl transferase (GGT) on the risk of all-cause mortality among Italian people older than 65 years and free from liver disease (n = 1,038). The median follow-up duration was 9 years (range 0.15–10.5 years). During the follow-up period, 401 subjects died. Crude and adjusted Cox regression analyses were performed to test the possible association between serum GGT and all-cause mortality. Multiple Cox regression models included serum GGT as a continuous variable as well as traditional risk factors (age, sex, smoking status, diabetes, LDL cholesterol, systolic blood pressure (SBP), and past cardiovascular (CV) events), hepatic disease-related factors (transaminases (AST/ALT), alkaline phosphatase (Alk_P), and alcohol consumption), body mass index (BMI), hemoglobin, oxidized LDL, C-reactive protein (CRP), hom*ocysteine, and creatinine clearance. (Table 2) The authors constructed a model with adequate statistical power by introducing approximately one covariate into the model for every 22 patients who died. As shown in Table 2, based on the crude analysis, a 20 U/L increase in serum GGT signaled a parallel 10% increase in the risk of all-cause mortality (HR 1.10, 95% CI 1.03–1.18, and P = 0.007). An adjustment for all potential confounders did not materially change the strength of the link between GGT and mortality (HR 1.11, 95% CI 1.02–1.21, and P = 0.02, Table 2). The study concluded that serum GGT is an independent risk factor for all-cause mortality among the elderly population.

Table 2

Multiple Cox regression models of all-cause mortality.

Crude modelAdjusted model
Units of increaseHazard ratio (95% CI), P valueHazard ratio (95% CI), P value
GGT20 U/L1.10 (1.03–1.18), P = 0.0071.11 (1.02–1.21), P = 0.02
Age1 year1.13 (1.11–1.15), P < 0.001
GenderMale gender1.26 (0.98–1.63), P = 0.08
Current smokersYes/no1.93 (1.43–2.63), P < 0.001
BMI1 kg/m21.01 (0.98–1.04), P = 0.49
LDL cholesterol1 mg/dl0.99 (0.98–0.99), P = 0.007
C-reactive protein1 μg/mL1.01 (1.01–1.02), P = 0.006
SBP1 mmHg1.01 (0.99–1.01), P = 0.17
Alk_P1 U/L1.00 (1.00–1.01), P = 0.01
Hemoglobin1 g/dL1.04 (0.96–1.13), P = 0.32
Alcohol consumption1 g/day0.99 (0.98–0.99), P = 0.03
AST1 U/L1.01 (0.99–1.04), P = 0.26
ALT1 U/L0.98 (0.96–0.99), P = 0.01
Diabetes mellitusYes/no1.17 (0.85–1.61), P = 0.35
Creatinine clearance1 ml/min/1.73 m21.00 (0.99–1.01), P = 0.80
Oxidized LDL1 U/L1.01 (0.99–1.02), P = 0.18
Past CV eventsYes/no1.48 (1.15–1.92), P = 0.002
hom*ocysteine1 μmol/L1.02 (1.00–1.03), P = 0.002

Open in a separate window

5. Example 3

A prospective longitudinal cohort study was conducted among 94 patients with primary angle-closure glaucoma (PACG) and 89 normal controls, who were followed up for 2 years (periodic visits every 6 months); the study is aimed at identifying the baseline oxidative stress-related factors predicting the progression of PACG [14]. In univariate Cox regression analyses, the female gender (P = 0.048), anterior chamber depth (P = 0.049), superoxide dismutase (SOD, P = 0.005), total antioxidant status (TAS, P < 0.001), and malondialdehyde (MDA, P = 0.008) were identified as significant predictors of the study end point. In a multivariable regression model, the females had a two-fold risk for developing PACG compared to males (HR = 2.228, 95% CI: 1.013–4.897, and P = 0.046), independently of all other factors. Higher levels of MDA (HR (1 μmol/l): 1.010; 95% CI: 1.001–1.018, P = 0.015), lower levels of SOD (HR (1 U/mL): 0.983; 95% CI: 0.971–0.994, and P = 0.003), and TAS (HR: 0.041; 95% CI: 0.008–0.218, and P < 0.001) were independently associated with the progression of PACG, as measured with the visual field (Figure 2) [14].

Open in a separate window

Figure 2

Forest plot of the hazard ratios for the risk factors associated with visual field progression in the paper by Li et al. [14].

6. Example 4

In a study of patients with end-stage renal disease, Zoccali et al. [15] investigated the relationship between systolic dysfunction (as assessed by left ventricular ejection fraction, LVEF) and the incidence rate of fatal and nonfatal cardiovascular (CV) events. In a multiple Cox regression model, a 1% decrease in LVEF signaled a 4% increase in the hazard rate of fatal and nonfatal CV events (HR: 1.04, 95% CI: 1.02–1.07, and P = 0.001) independently of a series of potential confounders, including age, gender, antihypertensive treatment, smoking, CRP, and SBP. To assess whether the link between LVEF and fatal and nonfatal CV events could be explained by the confounding effect of the left ventricular mass index (LVMI, a variable closely related to both LVEF and fatal and nonfatal CV events), the authors included this biomarker in the multiple Cox regression model. The relationship between LVEF and fatal and nonfatal CV events remained statistically significant after adjusting for LVMI. The authors concluded that studying myocardial contractility by echocardiography provides etiological information independently of LVMI and other risk factors in ESRD.

7. Conclusions

The Cox regression analysis is a fundamental statistical method for addressing etiological and prognostic hypotheses. It is based on estimating the HR associated with a specific risk factor or predictor for a given endpoint. Interpretation of the HR crucially depends on the units of measurement of each variable in the model. The number of covariates tested by the Cox method must account for the number of patients with the event of interest. The standard Cox regression method allows for an investigation of the effect of one or more variables (covariates) on the “time-to-first-event” analysis. An assessment of proportional hazards is a prerequisite to fitting a Cox regression model. In survival analysis, both Kaplan–Meier analysis and Cox regression methods are used to address etiological and prognostic hypotheses in clinical and epidemiological research.

Data Availability

All data supporting the results of this paper are presented.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Authors' Contributions

Samar Abd ElHafeez and Graziella D'Arrigo equally contributed to this work.

References

1. Singh R., Mukhopadhyay K. Survival analysis in clinical trials: basics and must know areas. Perspectives in Clinical Research. 2011;2(4):145–148. doi:10.4103/2229-3485.86872. [PMC free article] [PubMed] [CrossRef] [Google Scholar]

2. Goel M. K., Khanna P., Kishore J. Understanding survival analysis: Kaplan-Meier estimate. International Journal of Ayurveda Research. 2010;1(4):274–278. doi:10.4103/0974-7788.76794. [PMC free article] [PubMed] [CrossRef] [Google Scholar]

3. Stel V. S., Dekker F. W., Tripepi G., Zoccali C., Jager K. J. Survival analysis I: the Kaplan-Meier method. Nephron Clinical Practice. 2011;119(1):c83–c88. doi:10.1159/000324758. [PubMed] [CrossRef] [Google Scholar]

4. Tripepi G., Jager K. J., Dekker F. W., Zoccali C. Testing for causality and prognosis: etiological and prognostic models. Kidney International. 2008;74(12):1512–1515. doi:10.1038/ki.2008.416. [PubMed] [CrossRef] [Google Scholar]

5. In J., Lee D. K. Survival analysis: part I - analysis of time-to-event. Korean Journal of Anesthesiology. 2018;71(3):182–191. doi:10.4097/kja.d.18.00067. [PMC free article] [PubMed] [CrossRef] [Google Scholar]

6. Cox D. R. Regression models and life-tables. Journal of the Royal Statistical Society: Series B (Methodological). 1972;34(2):187–202. doi:10.1111/j.2517-6161.1972.tb00899.x. [CrossRef] [Google Scholar]

7. Bradburn M. J., Clark T. G., Love S. B., Altman D. G. Survival analysis part II: multivariate data analysis – an introduction to concepts and methods. British Journal of Cancer. 2003;89(3):431–436. doi:10.1038/sj.bjc.6601119. [PMC free article] [PubMed] [CrossRef] [Google Scholar]

8. Bewick V., Cheek L., Ball J. Statistics review 12: survival analysis. Critical Care. 2004;8(5):389–394. doi:10.1186/cc2955. [PMC free article] [PubMed] [CrossRef] [Google Scholar]

9. Spruance S. L., Reid J. E., Grace M., Samore M. Hazard ratio in clinical trials. Antimicrobial Agents and Chemotherapy. 2004;48(8):2787–2792. doi:10.1128/AAC.48.8.2787-2792.2004. [PMC free article] [PubMed] [CrossRef] [Google Scholar]

10. van Dijk P. C., Jager K. J., Zwinderman A. H., Zoccali C., Dekker F. W. The analysis of survival data in nephrology: basic concepts and methods of Cox regression. Kidney international. 2008;74(6):705–709. doi:10.1038/ki.2008.294. [PubMed] [CrossRef] [Google Scholar]

11. Hernán M. A. The hazards of hazard ratios. Epidemiology. 2010;21(1):13–15. doi:10.1097/EDE.0b013e3181c1ea43. [PMC free article] [PubMed] [CrossRef] [Google Scholar]

12. Stel V. S., Dekker F. W., Tripepi G., Zoccali C., Jager K. J. Survival analysis II: Cox regression. Nephron Clinical Practice. 2011;119(3):c255–c260. doi:10.1159/000328916. [PubMed] [CrossRef] [Google Scholar]

13. Spoto B., D’Arrigo G., Tripepi G., Bolignano D., Zoccali C. Serum gamma-glutamyltransferase, oxidized LDL and mortality in the elderly. Aging Clinical and Experimental Research. 2021;33(5):1393–1397. doi:10.1007/s40520-019-01391-4. [PubMed] [CrossRef] [Google Scholar]

14. Li S., Shao M., Li Y., et al. Relationship between oxidative stress biomarkers and visual field progression in patients with primary angle closure glaucoma. Oxidative Medicine and Cellular Longevity. 2020;2020:11. doi:10.1155/2020/2701539.2701539 [PMC free article] [PubMed] [CrossRef] [Google Scholar]

15. Zoccali C., Benedetto F. A., Mallamaci F., et al. Prognostic value of echocardiographic indicators of left ventricular systolic function in asymptomatic dialysis patients. Journal of the American Society of Nephrology. 2004;15(4):1029–1037. doi:10.1097/01.ASN.0000117977.14912.91. [PubMed] [CrossRef] [Google Scholar]

Articles from Oxidative Medicine and Cellular Longevity are provided here courtesy of Wiley

Methods to Analyze Time-to-Event Data: The Cox Regression Analysis (2024)
Top Articles
5 Ways a Costco Membership Can Save You Money on Travel
'Wasn't much of a difference' slams Costco member after trying new store concept
Duralast Gold Cv Axle
Lexi Vonn
Ups Dropoff Location Near Me
Plaza Nails Clifton
<i>1883</i>'s Isabel May Opens Up About the <i>Yellowstone</i> Prequel
360 Training Alcohol Final Exam Answers
Tanger Outlets Sevierville Directory Map
Gina's Pizza Port Charlotte Fl
How To Delete Bravodate Account
Ree Marie Centerfold
Inevitable Claymore Wow
Marion County Wv Tax Maps
Spartanburg County Detention Facility - Annex I
fort smith farm & garden - craigslist
Truth Of God Schedule 2023
Theresa Alone Gofundme
Gdp E124
25Cc To Tbsp
Google Flights Missoula
10-Day Weather Forecast for Santa Cruz, CA - The Weather Channel | weather.com
Equibase | International Results
Ge-Tracker Bond
Azpeople View Paycheck/W2
Pocono Recird Obits
Ou Class Nav
Rapv Springfield Ma
Prot Pally Wrath Pre Patch
R/Airforcerecruits
What Sells at Flea Markets: 20 Profitable Items
Tottenham Blog Aggregator
Ncal Kaiser Online Pay
Albertville Memorial Funeral Home Obituaries
Past Weather by Zip Code - Data Table
031515 828
County Cricket Championship, day one - scores, radio commentary & live text
Att U Verse Outage Map
Texas Baseball Officially Releases 2023 Schedule
Why Gas Prices Are So High (Published 2022)
Unifi Vlan Only Network
Nancy Pazelt Obituary
How Many Dogs Can You Have in Idaho | GetJerry.com
The Listings Project New York
R: Getting Help with R
UT Announces Physician Assistant Medicine Program
Identogo Manahawkin
Lagrone Funeral Chapel & Crematory Obituaries
The Love Life Of Kelsey Asbille: A Comprehensive Guide To Her Relationships
Scholar Dollar Nmsu
Bellin Employee Portal
Latest Posts
Article information

Author: Msgr. Benton Quitzon

Last Updated:

Views: 5972

Rating: 4.2 / 5 (43 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Msgr. Benton Quitzon

Birthday: 2001-08-13

Address: 96487 Kris Cliff, Teresiafurt, WI 95201

Phone: +9418513585781

Job: Senior Designer

Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.