Skip to contents

Dispatch 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.frame of unit-level covariates aligned with weights.

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.