I have understood the logrank test as a "safe" or "conservative" way to check for a difference between two survival curves. It is "safe" in the sense that it is a nonparametric test of $h_1(t) = h_2(t)$, where $h_i( \cdot)$ is the hazard function of the $i^{th}$ group. I can't find sources that support this claim of "safety", so I've either invented this interpretation myself or observed it from others over the years.

I have seen sources that say that the logrank test statistic is equivalent to the score test (also called the Legrange multiplier test). I am pulling definitions from these course notes (pg. 14) for anyone who wants to look. The score of a Cox model is $$\sum_{i=1}^{n} \delta_{i}\left\{Z_{i}-E\left(Z ; T_{i}\right)\right\},$$ where $\delta_i$ is an indicator of whether the subject $i$ has an event, $T_i$ is the possibly-censored survival time, $Z_i$ is a covariate like treatment assignment, and $E\left(Z ; T_{i}\right)$ is the expectation of $Z_i$. This is equivalent (or analogous??) to the "Observed - Expected" form of the logrank test.

I have two related questions:

  1. Since the logrank test and Cox regression have this equivalence, is my perception incorrect that the logrank test is "safer" than Cox regression?
  2. A cox model assumes that the hazard functions are proportional with the same baseline hazard: $h(t | Z_i) = h_0(t) * \exp(Z_i \times \beta)$. I am not aware of any assumptions for the logrank test. My perception has always been that a logrank test statistics must be better than Cox regression in terms of power or asymptotic efficiency or something since it is not making an assumption of proportional hazards. Is this actually true?
  • 2
    $\begingroup$ A good discussion, but not a complete answer to your questions, here: discourse.datamethods.org/t/… $\endgroup$ Sep 9, 2020 at 18:46
  • $\begingroup$ Could you please let me know where I can find the references for the presented notes? I've searched on books and articles but I haven't been able to find the sources for pages 26, 27 and 28. Thank you so in advance! $\endgroup$
    – Raquel
    Aug 11, 2021 at 10:08
  • $\begingroup$ @Raquel course notes like these often don't include references. The content on pages 26-28 is based on standard log-partial-likelihood formulas for a Cox model, to be found starting on page 13 of those notes and in most survival-analysis texts, and its score test. What's missing is direct comparison to the equivalent form of the usual logrank test, in the notes for lecture 3 in this course. $\endgroup$
    – EdM
    Aug 11, 2021 at 16:54

1 Answer 1


There is no advantage to using the log-rank statistic and several disadvantages:

  • Unlike the Cox model, log-rank does not generalize to a Bayesian framework
  • the log-rank test only works for mutually exclusive categories and does not handle a continuous exposure variable
  • log-rank does not allow for general covariate adjustment

Since the log-rank test is a special case of the Cox model, it does not have fewer assumptions or more power. IMHO we no longer need to be using or teaching the log-rank test.

  • 2
    $\begingroup$ Thank you. I was never concerned about those disadvantages, though a reminder is helpful. I thought of log-rank as a barebones Frequentist test when you only had a covariate for treatment assignment. I have been genuinely surprised to see it is equivalent to Cox regression. $\endgroup$
    – Eli
    Sep 9, 2020 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.