computeWeights function

Weighting of cases through iterative proportional fitting (Raking)