A SAS macro for a clustered logrank test

Comput Methods Programs Biomed. 2011 Nov;104(2):266-70. doi: 10.1016/j.cmpb.2011.02.001. Epub 2011 Apr 15.


The clustered logrank test is a nonparametric method of significance testing for correlated survival data. Examples of its application include cluster randomized trials where groups of patients rather than individuals are randomized to either a treatment or a control intervention. We describe a SAS macro that implements the 2-sample clustered logrank test for data where the entire cluster is randomized to the same treatment group. We discuss the theory and applications behind this test as well as details of the SAS code.

Publication types

  • Research Support, N.I.H., Extramural

MeSH terms

  • Cluster Analysis
  • Models, Theoretical*
  • Randomized Controlled Trials as Topic*