SURVIVAL

Cox Proportional Hazards

Comprehensive survival analysis with risk stratification, C-index concordance, Kaplan-Meier curves, and Schoenfeld residual diagnostics.

What Makes This Rigorous

Risk Stratification

Automatic tertile-based risk groups with separate survival curves for each.

Model Validation

C-index concordance, cox.zph tests, Schoenfeld residuals, and three model test statistics.

Survival Milestones

Survival probabilities at 6, 12, 24, 36, 48, and 60-month intervals with CIs.

What You Need to Provide

Time and event columns with covariates

Provide time_column, event_column (1=event, 0=censored), and array of covariates. Optional strata for stratified models.

Automatically converts categorical variables to factors, calculates risk scores, creates tertile-based risk groups, performs comprehensive model testing (likelihood ratio, Wald, score tests), and identifies top risk factors sorted by effect size.

Survival Schema / time, event, covariates

Quick Specs

C-indexModel concordance
Risk GroupsAutomatic tertiles
Milestones6 time points
TestsLR, Wald, Score

How We Model Risk

From fitting to validating assumptions

1

Fit & Calculate

Cox model with hazard ratios, baseline hazard, and C-index concordance metric.

2

Test & Validate

Cox.zph proportionality test, Schoenfeld residuals, three global test statistics.

3

Stratify & Visualize

Create risk tertiles, generate KM curves by group, identify top risk factors.

Why This Analysis Matters

Comprehensive survival analysis with automatic risk stratification—identify high-risk groups and quantify factor impacts.

The implementation uses the survival package, automatically creates risk tertiles (Low/Medium/High), calculates C-index for model discrimination, provides survival probabilities at 6 key milestones, performs three global model tests (likelihood ratio, Wald, score), and identifies significant risk factors sorted by effect size. Includes baseline hazard calculation and supports optional stratification.

Note: Automatically converts character columns to factors. Reports censoring rate and median survival. Tests proportional hazards assumption with cox.zph.

Ready to Model Time‑to‑Event?

Get hazard ratios, survival curves, and diagnostics

Read the article: Cox PH Survival