Adrian Mander’s ipf command (iterative proportional fitting) 公卫家园
Iterative proportional fitting is a procedure that calculates the expected frequencies within a contingency table. The
algorithm converges to maximum likelihood estimates even when the likelihood is badly behaved and is extremely fast
when the contingency table has a large number of cells.