Algorithm for balancing both continuous and categorical covariates in randomized controlled trials
Related Experiment Video
Updated: May 21, 2026

Inverse Probability of Treatment Weighting (Propensity Score) using the Military Health System Data Repository and National Death Index
Published on: January 8, 2020
Lan Xiao1, Veronica Yank, Jun Ma
1Department of Health Services Research, Palo Alto Medical Foundation Research Institute, 795 El Camino Real, Ames Building, Palo Alto, CA, United States. xiaol@pamfri.org
Abstract:
Minimization as proposed by Pocock and Simon for balancing categorical covariates in clinical trials with individual-level, consecutive randomization has been increasingly used. An extension of the method exists that uses the symmetric Kullback-Leibler divergence index to balance both categorical and continuous covariates, albeit for two-arm randomized controlled trials only. To date, the algorithm has not been made widely available to researchers via publicly accessible software. We adapted Endo et al.'s algorithm to randomized trials with two or more arms. In addition, our algorithm incorporates Efron's biased coin method to decrease the predictability of assignment even when a predefined threshold of difference in the numbers of subjects between treatment arms is reached, whereas Endo et al.'s algorithm assigns the next subject to the treatment of smaller size with certainty. We developed code in the free statistical software R to make the algorithm readily available to trialists. While there are no definitive answers regarding the optimal choices for certain statistical parameters that must be defined prior to algorithm application (P(k), D(n), and p_D(n)), we provide guidance on these. We conducted simulations with actual data from a three-arm randomized trial to compare the modified algorithm and R code to another published biased coin minimization method that can accommodate continuous and categorical covariates in multi-arm trials. The three-arm trial used three categorical covariates (sex, race/ethnicity, and online personal health record access) and four continuous covariates (age, fasting blood glucose, body mass index, and waist circumference). All of the continuous and categorical covariates were well balanced, and the results were comparable to the comparison method.
Related Concept Videos
Randomized Experiments
Simple randomization
Simple...
Bioequivalence Experimental Study Designs: Completely Randomized and Randomized Block Designs
Bioequivalence Experimental Study Designs: Repeated Measures, Cross-Over, Carry-Over, and Latin Square Designs
Study Design in Statistics
Does aspirin reduce the risk of heart attacks? Is one brand of fertilizer more effective at growing roses than another? Is fatigue as dangerous to a driver as the influence of alcohol? Questions like these are answered using randomized experiments with proper...
Crossover Experiments
Crossover designs are performed even with smaller sample sizes since the samples can act as their controls. These are better than simple randomized trials since patients are exposed to all the treatments.
Strategies for Assessing and Addressing Confounding
Confounding can be addressed at both the design phase of a study and through analytical methods after data...

