Camillo, F., and I. D’Attoma. “%GI: A SAS Macro for Measuring and Testing Global Imbalance of Covariates Within Subgroups”. Journal of Statistical Software, Code Snippets, vol. 51, no. 1, Nov. 2012, pp. 1-19, doi:10.18637/jss.v051.c01.