Build pseudo-weights using the calibration (raking) method
raking_build(
vars,
sc,
sp,
sp_des,
wts.col,
control,
verbose = FALSE,
log_messages = NULL
)A list with components:
Numeric vector of calibration pseudo-weights for `sc`.
Named numeric vector of participation model coefficients.
List of solver convergence diagnostics.
Updated character vector of log messages.
List containing design matrices (`Xc`, `Xp`) and sandwich components (`S_beta`, `D`) needed by the estimation stage.
Character vector of predictor variable names.
Data frame. The nonprobability sample.
Data frame. The probability reference sample.
A `survey.design2` or `svyrep.design` object for `sp`.
Character scalar. Name of the survey-weight column in `sp`.
A list created by `pw_solver_control()`.
Logical. If `TRUE`, convergence messages are printed.
Character vector of messages accumulated in earlier steps, appended to the returned object unchanged.