| get_sbws_for_study | R Documentation |
Tries the unconstrained closed-form solve first for each arm
(get_weights_for_group_neg()); if the result is nonnegative within
floating-point tolerance, zeroes out negligible negative dust and returns
it directly. Otherwise falls back to the nonnegative-QP solve
(get_weights_for_group_nonneg()).
get_sbws_for_study(X_subset, A)
X_subset |
Covariate data frame for the full study sample. |
A |
Treatment indicator (0/1) for the full study sample. |
A list with w (numeric vector of weights, one per row of
X_subset), n_clipped, and max_abs_clipped (both 0 if the
closed-form solve was used).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.