Cox Proportional Hazards — multivariable survival with adjusted HRs
VerifiedAdvanced & specialized
Run this test straight away on a free built-in teaching dataset — no data of your own needed — or bring your own. Either opens the guided workspace: variable setup, assumption diagnostics, results with effect sizes and confidence intervals, figures, and APA-ready reporting.
Loading teaching datasets…
Or use your own dataset
Loading your datasets…
Models the relationship between predictor variables and the time until an event occurs (survival / time-to-event data), accounting for censoring.
Semi-parametric — leaves the baseline hazard h₀(t) unspecified and estimates the relative-hazard structure exp(βX). Reports hazard ratios per covariate with 95% CIs, the partial-likelihood ratio test for the overall model, Schoenfeld residual tests for the proportional-hazards assumption per covariate, and concordance index (C-index) for discrimination. The standard tool for survival analysis in clinical research, epidemiology, and reliability engineering.
Worked example
Which factors change the risk of relapse, adjusting for the others?
Time-to-relapse in 200 patients was modelled on treatment, age and stage with Cox proportional-hazards regression; effects read as hazard ratios.
Treatment cut the relapse hazard (HR = 0.43, 95% CI [0.31, 0.61], p < .001), independent of age and stage.
A Cox regression showed the treatment significantly reduced relapse risk, HR = 0.43, 95% CI [0.31, 0.61], p < .001, adjusting for age and stage.
Try it yourself: Load this ready-made sample and follow the run above.
When to use it
- Prospective cohort study500 cancer patients followed from diagnosis.
- Randomized clinical trial (survival endpoint)Drug A vs Drug B in 300 patients with heart failure.
When NOT to — use instead
- PH assumption violated (Schoenfeld rejects)Use AFT (parametric, distribution-based) or RMST (estimand robust to PH violation). → Weibull AFT \u2014 Accelerated Failure Time (parametric survival with TAF)
- Multiple competing event typesUse Fine-Gray subdistribution hazards or cause-specific Cox. → Competing Risks \u2014 Fine-Gray + Aalen-Johansen CIF (multi-cause survival)
- Continuous outcome (not time-to-event)Cox is for time-to-event data with censoring. → Linear Regression \u2014 OLS (continuous y + predictors)
- No censoring expected (all events observed)If no censoring, simple linear / median regression on log-time may suffice. → Linear Regression \u2014 OLS (continuous y + predictors)
Hypotheses
Parameter tested: adjusted log-hazard coefficients β + Schoenfeld-test per coefficient
Assumptions (and what to do if they fail)
Check: Global Schoenfeld p-value.
If violated: Violated PH inflates / attenuates the reported HR; the effect may be time-varying.
Check: Visual — martingale residuals.
If violated: Non-linearity understates / overstates the effect of extreme predictor values.
Check: Max |score residual| per subject.
If violated: An outlier can drive a single coefficient.
Ready to run a Cox Proportional Hazards — multivariable survival with adjusted HRs on your own data?
Guided setup, automatic assumption checks, effect sizes, figures and an APA write-up.
Run this test →