Cohort
Comparison
Group A Group B (treatment)
Group A: N / events / censored
– / – / –
Group A median survival
–
Group B: N / events / censored
– / – / –
Group B median survival
–
Log-rank test (A vs B)
–
How it works

Each subject gets a true event time drawn from an exponential hazard. With probability equal to the censoring slider, a subject also gets a random dropout time before the end of the study — if that dropout happens first, the subject is censored: still alive when last observed, not "dead", and not thrown away.

S(t) = Ī _{t_i ≤ t} (1 āˆ’ d_i / n_i)
d_i = events at time t_i, n_i = subjects still at risk at t_i
log-rank χ² = (O₁ āˆ’ E₁)² / V, summed per-event-time Oāˆ’E and variance
  • The step chart drops only at event times, never at censoring times.
  • Small tick marks on the curve mark exactly when a censored subject left the risk set.
  • The timeline strip above the curve shows every subject: a line ending in Ɨ (event) or | (censored).
  • In compare mode, Group B has a lower hazard (longer survival) so the curves separate — the log-rank χ² summarizes how unlikely that separation is under "no real difference".