statable Statistics for study and research

Cox regression (several characteristics and the time to an event)

In brief

Kaplan-Meier and the log-rank test compare the curves of groups. The Cox regression lets several characteristics act on the time to the event at once: a group and age and prior achievement. For every characteristic it gives a hazard ratio (HR) with an interval. It is chosen in the question "How long does it take until an event?" under "More options" → "Cox regression, columns". Statable calculates it with R (package survival); R is loaded once the first time (the button names the size).

What the hazard ratio means

Requirements

Reading the result

Efron and Breslow

When several people have the event at the same time (tied times), there are several ways to calculate. Statable calculates by Efron, as R does, which is more accurate. SPSS (COXREG) calculates by Breslow; with many tied times B, standard error and HR differ slightly (hardly at all with few tied times). There is no switch.

Reporting the result

Cox regression: LR test χ²(3) = 30.50, p < .001; HR = 1.01, 95% CI [0.99, 1.03], p = .232 (age); HR = 0.58, 95% CI [0.41, 0.80], p = .001 (sex: women); HR = 1.59, 95% CI [1.27, 1.99], p < .001 (ph.ecog); 227 people, 164 events; C = .64

Example (survival::lung, Loprinzi et al. 1994, 228 people with advanced lung cancer): for women death occurs at any time with 0.58 times the hazard of men, at the same age and the same ph.ecog (HR = 0.58, 95% CI [0.41, 0.80], p = .001). Do not word it causally; name the assumption of proportional hazards and the number of events.

For specialists

survival::coxph (version 3.8), ties = "efron", Wald test and Wald interval with qnorm(.975); likelihood ratio test of the model and for each characteristic from the model without it on the same cases; cox.zph with transform = "km" (score test), per characteristic (groups together) and GLOBAL; concordance from coxph. Checked against R on the Mac and against an own maximization of the partial likelihood (Efron and Breslow, without survival), with tolerance 1e-6. Right-censoring only, one event per person, no time-dependent covariates, no stratification.

library(survival)
m <- coxph(Surv(time, status) ~ age + sex + ph.ecog, data = lung, ties = "efron")
summary(m)
cox.zph(m, transform = "km", terms = TRUE)

Sources

Cox, D. R. (1972). Regression models and life-tables. Journal of the Royal Statistical Society B, 34, 187-220. Grambsch, P. M. & Therneau, T. M. (1994). Proportional hazards tests and diagnostics based on weighted residuals. Biometrika, 81, 515-526. Peduzzi, P., Concato, J., Feinstein, A. R. & Holford, T. R. (1995). Importance of events per independent variable in proportional hazards regression analysis. Journal of Clinical Epidemiology, 48, 1503-1510. Efron, B. (1977). The efficiency of Cox's likelihood function for censored data. Journal of the American Statistical Association, 72, 557-565. Harrell, F. E. et al. (1982). Evaluating the yield of medical tests. JAMA, 247, 2543-2546.

Related

Open in Statable