A SAS macro for a clustered permutation test

Comput Methods Programs Biomed. 2009 Jul;95(1):89-94. doi: 10.1016/j.cmpb.2009.02.005. Epub 2009 Mar 24.


The clustered permutation test is a nonparametric method of significance testing for correlated data. It is often used in cluster randomized trials where groups of patients rather than individuals are randomized to either a treatment or control intervention. We describe a flexible and efficient SAS macro that implements the 2-sample clustered permutation test. 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

  • Algorithms
  • Cluster Analysis
  • Computational Biology / methods*
  • Computers
  • Data Interpretation, Statistical
  • Humans
  • Monte Carlo Method
  • Programming Languages
  • Randomized Controlled Trials as Topic*
  • Reproducibility of Results
  • Research Design*
  • Software
  • Statistics, Nonparametric