CalcWorldHub
Free online calculator · no signup

Two group right censored logrank test calculator

Compare event-time experience in two independent right-censored groups by accumulating observed-minus-expected events over shared risk sets.

4,000 tools
Two group right censored logrank test calculator — Follow-up times, Event indicators, Group labels zero or one and calculation method
Two group right censored logrank test calculator: inputs and calculation method.

How to use this calculator

Compare event-time experience in two independent right-censored groups by accumulating observed-minus-expected events over shared risk sets.

  1. Enter Follow-up times, Event indicators, Group labels zero or one. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Two group right censored logrank test explained

Two-group logrank chi-square0.6982
Two-group logrank chi-square: 0.69824709 in the worked scenario.

A numerical walkthrough

Follow-up times = 2,4,5,7,9,3,6,8,10,12; Event indicators = 1,1,0,1,0,1,0,1,1,0; Group labels zero or one = 0,0,0,0,0,1,1,1,1,1.

  • Two-group logrank chi-square: 0.69824709
  • Chi-square reference p-value: 0.40337333
  • Group 1 observed minus expected events: -0.90555556 events

The two five-observation groups have different censoring times. Each observed event is compared with the fraction of the current risk set assigned to group one, not with half the events automatically.

The model behind the numbers

U=Σ(d1j−n1j·dj/nj); V=Σ[n1j(nj−n1j)dj(nj−dj)/(nj²(nj−1))]; χ²=U²/V.

At every pooled event time, condition on the combined risk set and total events. The hypergeometric variance handles tied event counts. Censored observations remain at risk through their recorded time. A one-degree-of-freedom chi-square reference gives the p-value.

What to enter

t — Follow-up times
Nonnegative observed event or right-censoring times, with one common origin and time unit. Use comma-separated values in the stated order.
e — Event indicators
Event indicator aligned with each follow-up: one means the event occurred at that time, zero means right-censored then. Use comma-separated values in the stated order.
g — Group labels zero or one
One binary label per observation: group zero or group one. Labels align with the follow-up and event lists. Use comma-separated values in the stated order.

Interpreting the result

Independent groups, non-informative right censoring, and no delayed entry. The usual logrank test is most sensitive to proportional hazard alternatives; crossing survival curves can cancel directional contributions.

Reading the outputs

The signed observed-minus-expected total identifies the direction of the group-one event contrast. The squared test statistic itself has no direction.

Frequently asked questions

Can I compare means of the recorded times instead?

Censored times are incomplete event times, so their ordinary mean does not estimate the same target.

Is this a hazard ratio estimate?

No. Use a justified regression model to estimate a hazard ratio.

Are tied events supported?

Yes. The risk-set variance includes the finite-population tie factor.

How do I use the Two group right censored logrank test calculator?

Enter Follow-up times, Event indicators, Group labels zero or one. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Two group right censored logrank test?

Follow-up times = 2,4,5,7,9,3,6,8,10,12; Event indicators = 1,1,0,1,0,1,0,1,1,0; Group labels zero or one = 0,0,0,0,0,1,1,1,1,1. Two-group logrank chi-square: 0.69824709 Chi-square reference p-value: 0.40337333 Group 1 observed minus expected events: -0.90555556 events The two five-observation groups have different censoring times. Each observed event is compared with the fraction of the current risk set assigned to group one, not with half the events automatically.