CalcWorldHub
Free online calculator · no signup

Single predictor Cox proportional hazards fit calculator

Estimate a one-predictor proportional hazards coefficient from right-censored observations using Breslow handling of tied event times.

4,000 tools
Single predictor Cox proportional hazards fit calculator — Follow-up times, Event indicators, Predictor values and calculation method
Single predictor Cox proportional hazards fit calculator: inputs and calculation method.

How to use this calculator

Estimate a one-predictor proportional hazards coefficient from right-censored observations using Breslow handling of tied event times.

  1. Enter Follow-up times, Event indicators, Predictor values. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Single predictor Cox proportional hazards fit explained

Each record contributes a follow-up time, an event indicator, and one predictor value. The fitted coefficient describes the log hazard change for a one-unit predictor increase; exponentiating it gives the corresponding hazard ratio.

Cox log hazard coefficient0.2679per predictor unit
Cox log hazard coefficient: 0.26790463 per predictor unit in the worked scenario.

Inputs, symbols, and units

t — Follow-up times
Nonnegative observed event or right-censoring times, with one common origin and time unit. Use comma-separated values in the stated order.
e — Event indicators
Event indicator aligned with each follow-up: one means the event occurred at that time, zero means right-censored then. Use comma-separated values in the stated order.
x — Predictor values
One numeric predictor per observed follow-up record. A unit increase in this scale defines the reported hazard ratio. Use comma-separated values in the stated order.

Formula and method

ℓ(β)=Σj[βΣevents x−dj ln(Σrisk exp(βx))]; HR=exp(β).

At each event time, the Breslow partial likelihood compares the predictors of observed events with everyone still at risk at that time; tied events share the same risk-set denominator. The estimate assumes independent records, proportional hazards, right censoring, and no delayed entry. It does not estimate baseline survival or test the proportional-hazards assumption.

A worked scenario

Follow-up times = 2,4,5,7,9,3,6,8,10,12; Event indicators = 1,1,0,1,0,1,0,1,1,0; Predictor values = 3,1,2,4,0,2,3,0,1,2.

  • Cox log hazard coefficient: 0.26790463 per predictor unit
  • Hazard ratio per predictor unit: 1.30722247
  • Model-based coefficient standard error: 0.34054771
  • Wald two-sided p-value: 0.43146481

The ten records mix events and censored observations. The predictor is not simply regressed on recorded follow-up times; every event compares its predictor with the then-current risk set.

Assumptions and edge cases

Proportional hazards, independent observations, non-informative right censoring, and no delayed entry. A finite nonsingular fit is required. This tool does not test proportionality, estimate baseline survival, or provide robust clustered errors.

Reading the outputs

A hazard ratio above one describes a higher instantaneous event rate per predictor unit under the model. It is not a fixed-time risk ratio or a causal effect by itself.

Frequently asked questions

Which tie method is used?

Breslow, explicitly; software using Efron can differ when event times tie.

Can a non-finite coefficient be returned?

No. Singular, separated, or nonconvergent fits are rejected.

Does the model assume exponential survival?

No. The baseline hazard is left unspecified, but proportional hazards is assumed.

How do I use the Single predictor Cox proportional hazards fit calculator?

Enter Follow-up times, Event indicators, Predictor values. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Single predictor Cox proportional hazards fit?

Follow-up times = 2,4,5,7,9,3,6,8,10,12; Event indicators = 1,1,0,1,0,1,0,1,1,0; Predictor values = 3,1,2,4,0,2,3,0,1,2. Cox log hazard coefficient: 0.26790463 per predictor unit Hazard ratio per predictor unit: 1.30722247 Model-based coefficient standard error: 0.34054771 Wald two-sided p-value: 0.43146481 The ten records mix events and censored observations. The predictor is not simply regressed on recorded follow-up times; every event compares its predictor with the then-current risk set.