A SAS macro for a clustered permutation test
Related Experiment Video
Updated: Jun 24, 2026

A Cost Effective and Adaptable Scratch Migration Assay
Published on: June 30, 2020
Margaret R Stedman1, David R Gagnon, Robert A Lew
1Department of Biostatistics, Boston University School of Public Health, Boston, MA, United States. mstedman2@partners.org
Abstract:
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.
More Related Videos
Related Concept Videos
McNemar's Test
Statistical Analysis System (SAS)
Applications: SAS finds applications in numerous fields, including healthcare for clinical trial analysis, finance for risk assessment, marketing for customer data analysis, and...
One-Way ANOVA: Unequal Sample Sizes
One-Way ANOVA: Equal Sample Sizes
Different sample means can result in different values for the variance estimate: variance between samples. This is because the variance between samples is calculated as the product of the sample size and the variance between the...
Test for Homogeneity
Kruskal-Wallis Test

