Lably
Skip to content

Logrank test

Hypothesis test to compare the survival distributions of two samples

  • 4 min read
  • 5 chapters

Related on Lably

Through Statistical hypothesis test and Central limit theorem

The test was first proposed by Nathan Mantel and was named the logrank test by Richard and Julian Peto.

Definition

The logrank test statistic compares estimates of the hazard functions of the two groups at each observed event time. It is constructed by computing the observed and expected number of events in one of the groups at each observed event time and then adding these to obtain an overall summary across all-time points where there is an event.

Consider two groups of patients, e.g., treatment vs. control. Let 1,…,J be the distinct times of observed events in either group. Let N1,j and N2,j be the number of subjects "at risk" (who have not yet had an event or been censored) at the start of period j in the groups, respectively. Let O1,j and O2,j be the observed number of events in the groups at time j. Finally, define Nj=N1,j+N2,j and Oj=O1,j+O2,j.

The null hypothesis is that the two groups have identical hazard functions, H0:h1(t)=h2(t). Hence, under H0, for each group i=1,2, Oi,j follows a hypergeometric distribution with parameters Nj, Ni,j, Oj. This distribution has expected value Ei,j=OjNi,jNj and variance Vi,j=Ei,j(Nj−OjNj)(Nj−Ni,jNj−1).

For all j=1,…,J, the logrank statistic compares Oi,j to its expectation Ei,j under H0. It is defined as

Zi=∑j=1J(Oi,j−Ei,j)∑j=1JVi,j→dN(0,1) (for i=1 or 2)

It is easy to see that for all j, O2,j−E2,j=−(O1,j−E1,j) and V2,j=V1,j, so Z2=−Z1.

By the central limit theorem, the distribution of each Zi converges to that of a standard normal distribution as J approaches infinity and therefore can be approximated by the standard normal distribution for a sufficiently large J. An improved approximation can be obtained by equating this quantity to Pearson type I or II (beta) distributions with matching first four moments, as described in Appendix B of the Peto and Peto paper.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Statistics