Log-rank survival comparison
Survival analysis · Method and input reference
Standard unadjusted log-rank test for 2+ independent groups with right censoring. Columns: nonnegative time, event (1) / censored (0), group (text category or numeric code from saved Data). Non-informative censoring assumed. Crossing hazards reduce power; no hazard ratio or competing-risk inference. Synthetic example: 120 simulated follow-up records in three groups.
Open calculator · Compare methods in the decision matrix
When to consider it
- Compare unadjusted survival across independent groups with right censoring.
Assumptions and scope
- Independent subjects and non-informative right censoring; crossing hazards can reduce power.
- Unadjusted comparison only; no hazard ratio or competing-risk test.
Required inputs
- Time, event, group — Numeric observations; preserve the row and column structure described above.
Review missing values and data coding before running. Sample inputs are synthetic teaching examples.
Implementation
Standard unadjusted log-rank test for 2+ independent groups with right censoring. Columns: nonnegative time, event (1) / censored (0), numeric group code. Non-informative censoring assumed. Crossing hazards reduce power; no hazard ratio or competing-risk inference. Synthetic example: 120 simulated follow-up records in three groups.
- lifelines 0.30.0: lifelines.statistics.multivariate_logrank_test
These are pinned library versions; saved results record the versions actually used at runtime.