| get_weights_for_group_nonneg | R Documentation |
Solves the same balance objective as get_weights_for_group_neg(), but
constrained to nonnegative weights via quadratic programming.
get_weights_for_group_nonneg(data, X_n)
data |
Covariate data frame for the group (one treatment arm). |
X_n |
Target covariate mean to balance to. |
A list with w (numeric vector of weights), n_clipped, and
max_abs_clipped (see .clip_weights()).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.