[…] just last week I used it to simulate contingency tables. Several years ago I used this trick to expand data by using frequencies. In general, you can use it to perform "BY-group processing" in the SAS/IML …