Dispatch helper – calibrate to totals via "raking" or "greg".
Source:R/weights.R
morie_weights_calibrate_to_totals.RdDispatch helper – calibrate to totals via "raking" or "greg".
Usage
morie_weights_calibrate_to_totals(
weights,
df,
totals,
method = c("raking", "greg"),
...
)Arguments
- weights
Numeric vector of unit-level design weights.
- df
A
data.frameof unit-level covariates aligned withweights.- totals
Named numeric vector of calibration targets used by
calibrate_to_totals.- method
Character; calibration / smoothing / variance method. Allowed values depend on the caller.
- ...
Additional method-specific arguments.