\(w_i^{ps} = w_i \cdot N_h / \hat{N}_h\).
Usage
morie_weights_poststratify(weights, strata, population_totals)
Arguments
- weights
Numeric vector of unit-level design weights.
- strata
Optional vector of stratum identifiers aligned with
weights.
- population_totals
Named numeric vector of target totals to
calibrate to.