Prepare scaled matrices and moments
prepare_nmar_scaling(
Z_un,
X_un,
mu_x_un,
standardize,
weights = NULL,
weight_mask = NULL
)A list with components Z, X, mu_x, and
recipe.
response model matrix (with intercept column).
auxiliary model matrix (no intercept), or NULL.
named numeric vector of auxiliary means on the original scale
(names must match colnames(X_un)), or NULL.
logical; apply standardization if TRUE.
Optional numeric vector used for weighted scaling.
Optional logical mask or nonnegative numeric multipliers
applied to weights.