eb_ate | R Documentation |
eb_ate
is a wrapper for energybalance
that focuses on using it to estimate energy balancing weights for the average treatment effect (ATE). The combined energy distance between each treatment and the full sample is minimized.
eb_ate(sampleX, Z, sampleW = NULL, std = "studentized", improved = TRUE, 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 |
|
improved |
|
lambda |
a penalty on the sum of the squared weights. |
A vector of weights, one for each row of sampleX
.
Noah Greifer
energybalance
for a more flexible interface that allows matching both groups to a target distribution other than the full sample.
edist_ate
for the quantity that eb_ate
minimizes.
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.