balanceplot: Stata command to Plot Imbalance Across Groups
balanceplot produces dot plots of standardized imbalance statistics across groups of a categorical independent variable. Standarized imbalance statistics provide a useful way to present differences across covariates (specifed in varlist) for groups of the categorical independent variable (specified in option group( )) of interest.
balanceplot calculates standardized imbalance statistics and plots them as a dotplot using coefplot. The table of means, t-tests for balance, and standardized imbalance statistics can be shown with the option table. The base of the command that balanceplot uses to to make the plot can be shown with the option plotcommand.
To install, type in Stata:
net install balanceplot, from("https://tdmize.github.io/data/balanceplot")
After installing: to read the balanceplot help file:
balanceplot wage age i.married i.collgrad i.south tenure ttl_exp, group(union)
balanceplot wage age i.married i.collgrad i.south tenure ttl_exp,
group(race) base(1) ref(2) ref2(3) graphop(xlab(-75(25)75))