The link between log-rank test and KM estimates I have taken the survival analysis class a few years ago, and we have learned both Kaplan-Meier estiamtes for survival curves, and the log-rank test for inferencing the difference of hazard rate between 2 groups.
That being said, I can use software (such as proc lifetest in SAS or survival package in R) to do KM estimates or log-rank test seaprately.
My question is though, what is the theoretical link between these 2? Is there any connection in between? e.g., is the test statsitic of (stratified) log-rank test based on the KM-estimate?
The reason I am asking is because, recently I see in a document (for confidential purpose I could not mention from where), that a stratified log-rank test is based on KM method, but I do not understand why, as the document did not give any further detail exept referring to the literature by Kaplan and Meier back in 1958 (Nonparametric estimation from incomplete observations).
I checked the referred literature (KM 1958) but it only layed out the deriation of KM estimates, without mentioning anything about log-rank test.
Could someone help?
 A: The Kaplan-Meier method is a popular way to estimate survival over time for a group of individuals when some survival times might be censored. It doesn't provide a test per se.
The log-rank test is one of several related ways to test whether there is are survival differences between two or more groups of individuals. These tests are based on differences between the observed numbers of events at event times and the number expected if, at each event time, all groups had the same hazard. The tests differ in the weight placed on different times; the log-rank test weights all times equally. See this answer for some details on the log-rank version.
The derivation by Klein and Moeschberger in Section 7.3 is based on a different survival estimator, the Nelson-Aalen estimator. The log-rank test is nevertheless a typical default for evaluating differences among survival curves however they are estimated.
You might be recalling that the log-rank test is equivalent to the score test for differences between groups in a Cox proportional hazards model. As the log-rank test is limited to mutually exclusive categories, doesn't allow for covariate adjustment, and doesn't extend to Bayesian analysis, Frank Harrell says that "we no longer need to be using or teaching the log-rank test."
