TY - JOUR AU - Camillo, Furio AU - D'Attoma, Ida PY - 2012/11/13 Y2 - 2024/03/28 TI - %GI: A SAS Macro for Measuring and Testing Global Imbalance of Covariates within Subgroups JF - Journal of Statistical Software, Code Snippets JA - J. Stat. Soft. VL - 51 IS - 1 SE - Code Snippets DO - 10.18637/jss.v051.c01 UR - https://www.jstatsoft.org/index.php/jss/article/view/v051c01 SP - 1 - 19 AB - The global imbalance (GI) measure is a way for checking balance of baseline covariates that confound efforts to draw valid conclusions about treatment effects on outcomes of interest. In addition, GI is tested by means of a multivariate test. The GI measure and its test overcome some limitations of the common way for assessing the presence of imbalance in observed covariates that were discussed in D'Attoma and Camillo (2011). A user written SAS macro called %GI, to simultaneously measure and test global imbalance of baseline covariates is described. Furthermore, %GI also assesses global imbalance by subgroups obtained through several matching or classification methods (e.g., cluster analysis, propensity score subclassification, Rosenbaum and Rubin 1984), no matter how many groups are examined. %GI works with mixed categorical, ordinal and continuous covariates. Continuous baseline covariates need to be split into categories. It also works in the multi-treatment case. The use of the %GI macro will be illustrated using two artificial examples. ER -