Development of an efficient SAS macro to perform permutation tests for two independent samples
Related Experiment Video
Updated: Aug 17, 2026

Barnes Maze Testing Strategies with Small and Large Rodent Models
Published on: February 26, 2014
G K Balasubramani1, Stephen R Wisniewski, Hongwei Zhang
1Epidemiology Data Center, Graduate School of Public Health, University of Pittsburgh, Pittsburgh, PA 15261, USA. balagk@edc.pitt.edu
Abstract:
When underlying distributions are unknown and sample sizes are small, permutation tests may have superior features to parametric tests, such as smaller type I error and more accurate probability values when testing the null hypothesis. However, permutation tests are not widely used in clinical trials because of their computational complexity. We developed an efficient SAS macro to generate all possible permutations of the data and to run subsequent permutation tests of difference between means for two independent samples. The macro performs permutation tests and provides the exact probability of significance for a wide range of statistics, including geometric means, medians, mid-ranges, mean-ranks, proportions and variances to meet the needs of data analysis in clinical trials.
Related Concept Videos
Test for Homogeneity
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...
Introduction to Test of Independence
The test statistic for a test of independence is similar to that of a goodness-of-fit test:
Hypothesis Test for Test of Independence
H0: The two variables (factors)...
Microsoft Excel: Student's t-Test
To conduct a t-test in Excel, use the T.TEST function or the "Data Analysis...