eb_att | R Documentation |
eb_att
is a wrapper for energybalance
that focuses on using it to estimate energy balancing weights for the average treatment effect on the treated (ATT) with one or more control (non-focal) groups. The energy distance between each non-focal treatment group and the focal treatment group is minimized.
eb_att(sampleX, Z, sampleW = NULL, std = "studentized", focal = NULL, improved = FALSE, lambda = 0)
sampleX |
a matrix or data frame of covariates composing the sample distribution to be weighted. See |
Z |
a vector denoting treatment group membership. |
sampleW |
optional; a vector of sampling weights for the sample. The product of the estimated weights and |
std |
|
focal |
a value of the |
improved |
|
lambda |
a penalty on the sum of the squared weights. |
A vector of weights, one for each row of sampleX
. Weights for which Z == focal
will be 1.
Noah Greifer
energybalance
for a more flexible interface.
eb_ate
for weights for estimating the average treatment effect (ATE).
eb_target
for weights that match a sample to a target, which can also be used for estimating ATT weights.
method_energy
for the implementation of energy balancing in WeightIt, which has additional options to restrict the difference in means between covariates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.