A SAS macro for sample size adjustment and randomization test for internal pilot study
Related Experiment Video
Updated: Jul 8, 2026

A User-friendly and Powerful R Analysis of Large-scale Datasets
Published on: November 4, 2025
Suzhen Wang1, Jielai Xia, Lili Yu
1Department of Health Statistics, Faculty of Preventative Medicine, Fourth Military Medical University, Xi'an, Shaanxi 710032, China.
Abstract:
An unnecessarily high or inadequately low sample size often occurs in clinical trials if the planned variance of the trials is overestimated or underestimated. Internal pilot study which utilizes the information from the patients recruited up to interim stage can solve this problem well by re-estimating the variance and re-calculating the sample size. The trial may get a satisfactory power but the type I error rate may be inflated while the t-test is adopted to make hypothesis test because condition of t-distribution is not sufficed any more with variation of the sample size resulted from internal pilot design. If blind variance estimators of the internal pilot are used for sample size recalculation and randomization test is used to accomplish the final hypothesis test, not only the blindness of the internal pilot is preserved but also the ability to control the type I error rate is guaranteed. A SAS macro is programmed to simulate the process of sample size adjustment and randomization test.
Related Concept Videos
Randomized Experiments
Simple randomization
Simple...
Sample Size Calculation
The sample size for the given experiment or sampling effort is fundamental to any study design. Sample size decides the number of...
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...
One-Way ANOVA: Unequal Sample Sizes
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...
Random Sampling Method
