Validate and apply scaling (engine-friendly)
validate_and_apply_nmar_scaling(
standardize,
has_aux,
response_model_matrix_unscaled,
aux_matrix_unscaled,
mu_x_unscaled,
weights = NULL,
weight_mask = NULL
)A list with components nmar_scaling_recipe,
response_model_matrix_scaled, auxiliary_matrix_scaled, and
mu_x_scaled.
logical; apply standardization if TRUE.
logical; whether the engine uses auxiliary constraints.
response model matrix (with intercept).
auxiliary matrix (no intercept) or an empty matrix.
named auxiliary means on original scale, or NULL.
Optional numeric vector used for weighted scaling.
Optional logical mask or nonnegative numeric multipliers
applied to weights.