When to use it
Use to test whether two or more survival distributions differ significantly.
Required Inputs
- Group A durations & status
- Group B durations & status
- Alternative hypothesis
Compare survival curves between two or more independent groups using the non-parametric log-rank test (Mantel-Cox test).
Run this test live in StatLab npm i @statlab/coreUse to test whether two or more survival distributions differ significantly.
χ² = [ Σ (O_1j - E_1j) ]² / Σ V_j, where E_1j = n_1j (d_j / n_j)
from lifelines.statistics import logrank_test
res = logrank_test(durations_a, durations_b, event_observed_A=status_a, event_observed_B=status_b)
print(f"p={res.p_value:.4f}")
library(survival)
survdiff(Surv(time, status) ~ group)
import { logRankTest } from '@statlab/core';
const res = logRankTest(groupA, groupB);
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.