Hi, I have read that article and have been trying to use the macro without success until this morning. I think I got it to work with my data (count data, see below). I knew that I could only compare outcomes 2 vs 1, and 3 vs 1, but was trying to figure out how to calculate a single standardized difference for all of age (5 levels). I realized this morning that I had to calculate a SMD for each level of age (as binary 0/1). I'm waiting on feedback from my mentor. Here is the data: Data age; Input level age_grp severity count; cards; 0 0 0 34967 0 1 0 109368 0 0 1 674 0 1 1 5992 0 0 2 133 0 1 2 4790 1 0 0 44727 1 1 0 99608 1 0 1 1293 1 1 1 5373 1 0 2 1342 1 1 2 3581 2 0 0 29442 2 1 0 114893 2 0 1 1074 2 1 1 5592 2 0 2 2035 2 1 2 2888 3 0 0 30257 3 1 0 114078 3 0 1 3077 3 1 1 3589 3 0 2 1314 3 1 2 3609 4 0 0 4942 4 1 0 139393 4 0 1 548 4 1 1 6118 4 0 2 99 4 1 2 4824 ;
... View more