| get_weights_for_group_neg | R Documentation |
Solves for weights on one treatment-arm's covariate data that exactly
balance its mean to the target X_n, minimizing sum of squared weights,
via the closed-form solution (no nonnegativity constraint).
get_weights_for_group_neg(data, X_n)
data |
Covariate data frame for the group (one treatment arm). |
X_n |
Target covariate mean to balance to. |
Numeric vector of weights, one per row of data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.