Finds weights closest to the design weights, in chi-square distance, that reproduce known population margins EXACTLY. The chi-square solution is closed form and reproduces GREG: one adjusts the estimate, the other the weights.
Value
list: total, calibrated_weights, margins_reproduced, max_margin_error, n_negative, weight_ratio_range, distance, equals_greg, n, p, method.
Details
Chi-square calibration can produce NEGATIVE weights, which are
awkward to defend; the count is returned rather than silently
clipped. The bounded alternative already exists in this package as
morie_calibration_weights, which rakes on
categorical margins by iterative proportional fitting and cannot
go negative. Mirrors morie.fn.calibr.
See also
morie_calibration_weights for raking.
