stats

Kaplan-Meier Survival Analysis

Product-limit survival curve with Greenwood CI, median survival, and log-rank test for two groups.

Subject Data
Mode
TimeEvent (0/1)
Results
n (Group 1)
Events (G1)
Median survival (G1)
S(tᵢ) = S(tᵢ₋₁) × (1 − dᵢ/nᵢ)  ·  Greenwood SE: S(t)√Σ dᵢ/(nᵢ(nᵢ−dᵢ))
Log-rank: χ² = (Σ(O₁−E₁))² / ΣV  ·  E₁ = (n₁/n)×d