When to use it
Use when analyzing time-to-event data subject to right-censoring.
Required Inputs
- Event / Duration times
- Censoring status (1 = event occurred, 0 = right-censored)
Compute non-parametric Kaplan-Meier survival curves, median survival time, Greenwood standard error, and cumulative failure hazard probabilities.
Run this test live in StatLab npm i @statlab/coreUse when analyzing time-to-event data subject to right-censoring.
Ŝ(t) = Π_{t_i ≤ t} (1 - d_i / n_i), Var(Ŝ(t)) = Ŝ(t)² Σ [ d_i / (n_i(n_i - d_i)) ]
from lifelines import KaplanMeierFitter
kmf = KaplanMeierFitter()
kmf.fit(durations, event_observed=censor_status)
print(kmf.median_survival_time_)
library(survival)
fit <- survfit(Surv(time, status) ~ 1)
summary(fit)
import { kaplanMeier } from '@statlab/core';
const res = kaplanMeier(durations, status);
Continuous A/B testing, statistical telemetry analysis, and automated feedback loops for live backend services.
Explore VoxelPulse →Fixed-price AI release-readiness sprints, automated regression testing, and reliability statistical benchmarks.
Explore VoxelAssurance →Explore static calculators across the StatLab inference engine suite.