Description Usage Arguments Value
Calculates adjusted weights under I = 1, using the nearest-neighbors method
1 2 |
Y |
outcome vector (must be numeric without NA's). |
X |
numeric data frame or matrix of factors to be considered. |
control |
numeric data frame or matrix of factors to control for. these are factors that we can't consider while looking for the optimal intervention (e.g. race). |
wgt |
an optional vector of weights. |
lambda |
the lagrange multiplier. also known as the shadow price of an intervention. |
sigma |
distance penalty for the nearest-neighbors method. |
grp.size |
for the nearest-neighbors method; if the number of examples in each
control group is smaller than grp.size, performs weight adjustment
using |
... |
additional arguments. |
vector of adjusted weights under I = 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.