When to use it
You have time-to-event ('survival') data (a follow-up time and a 0/1 event flag) and you want to quantify how covariates (treatment, dose, age, biomarkers …) raise or lower the risk of the event, adjusting for each other, without committing to a parametric baseline hazard.
When not to: You have no covariates and just want to describe or compare survival curves directly (use Kaplan-Meier and the log-rank test instead), the proportional-hazards assumption is clearly violated and cannot be worked around with stratification or a time-varying coefficient, or you need a fully parametric model to extrapolate the baseline hazard beyond the observed follow-up period (a Weibull or exponential AFT model is the appropriate tool).
Step by step
Open it from the menu
Click Reliability & Survival in the menu bar; under Survival choose Cox Proportional-Hazards Regression.
Fill in the form
Choose the columns: Time to event, Event happened? (1 = yes, 0 = censored), Columns that may explain it. The form lists only columns whose type fits each field.
Check the options
The options start at their defaults: Alpha, Ties method. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| Time to event Time required | One numeric column. Follow-up / time-to-event (numeric, non-negative) |
|---|---|
| Event happened? (1 = yes, 0 = censored) Event required | One categorical or numeric column. Event indicator: 1 = event occurred, 0 = censored |
| Columns that may explain it Predictors required | One numeric or categorical column. One or more predictor (covariate) columns |
| Alpha | Significance threshold and CI level (95% by default) Default: 0.05. |
| Ties method | Handling of tied event times in the partial likelihood Default: efron. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
What it assumes
- Proportional hazards
If it does not hold: If the hazard ratio for a predictor actually changes over follow-up time (the effect is stronger early or late rather than constant), the single reported hazard ratio is only an average over a changing effect and can be misleading about what happens at any specific time point.
How to check: The Grambsch-Therneau score test on the Kaplan-Meier time scale: a chi-square per predictor and a global chi-square for all together, with the smallest per-predictor p-value highlighted on the card and not adjusted for multiplicity; explicitly reported as 'NOT ASSESSED' rather than a false pass when the test cannot run (fewer than four events, every event at the same time, a diverging coefficient, or a test that cannot be computed).
- Independence of observations
If it does not hold: Cox regression assumes each subject's event/censoring time is independent of every other subject's; clustered data (e.g. multiple body sites per patient, patients within the same hospital) violate this and understate the true standard errors of the hazard ratios.
How to check: Not checked by KernelStats: assumed from the study design; reported directly on the card as a standing 'Independent survival times' reminder. A clustered design needs a frailty model or a robust (sandwich) variance estimator, neither of which this function provides.
A worked example
Bearing life in hours (60 bearings, 51 failures, 9 still running and censored), with lubricant (Standard as the reference, or Synthetic) and load in kN as predictors, Efron ties.
Result: Synthetic HR = 0.591, 95% CI [0.338, 1.034], p = .065; load HR = 1.054 per kN, 95% CI [1.006, 1.106], p = .029. Whole model: likelihood-ratio χ²(2) = 8.95, p = .011; concordance 0.622. Proportional-hazards check: lubricant χ²(1) = 0.81, p = .368; load χ²(1) = 3.56, p = .059; global χ²(2) = 4.68, p = .096.
Each extra kN of load multiplies the failure hazard by about 1.05, holding lubricant fixed. Synthetic lubricant goes with a hazard about 41% lower, but its interval runs from 0.34 to 1.03, so the data are compatible with anything from a large reduction to a slight increase. The proportional-hazards check finds no clear evidence of a drift over time; load comes closest (p = .059), so it is worth plotting before treating its hazard ratio as constant across the whole follow-up.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- After adjusting for age, does the new treatment lower the hazard of relapse, and by how much?
- Explain the Cox proportional-hazards regression in plain words.
- What does proportional hazards mean?
Last reviewed November 16, 2026.
