Statsly
survival

Kaplan–Meier + log-rank

Compare survival curves between groups.

Requirements

  • time variable
  • event indicator
  • group

Avoid when

  • need covariate adjustment
  • non-proportional hazards without alternatives

Formula

Ŝ(t) = Π(tᵢ≤t) [1 − dᵢ/nᵢ]

Interpretation

Log-rank p-value tests curve equality across groups.

Worked example

Compare time-to-event curves between two treatment groups.

Open example datasets