![Iterative proportional fitting in SAS](https://blogs.sas.com/content/iml/files/2020/09/RAS1.png)
I previously wrote about the RAS algorithm, which is a simple algorithm that performs matrix balancing. Matrix balancing refers to adjusting the cells of a frequency table to match known values of the row and column sums. Ideally, the balanced matrix will reflect the structural relationships in the original matrix.