dx.wts | R Documentation |
dx.wts
takes a ps
object or a set of propensity scores and
computes diagnostics assessing covariates balance.
dx.wts(
x,
data,
estimand,
vars = NULL,
treat.var,
x.as.weights = TRUE,
sampw = NULL,
perm.test.iters = 0
)
x |
A data frame, matrix, or vector of propensity score weights or a ps
object. |
data |
A data frame. |
estimand |
The estimand of interest: either "ATT" or "ATE". |
vars |
A vector of character strings naming variables in |
treat.var |
A character string indicating which variable in |
x.as.weights |
|
sampw |
Optional sampling weights. If |
perm.test.iters |
A non-negative integer giving the number of iterations
of the permutation test for the KS statistic. If |
Creates a balance table that compares unweighted and weighted means and standard deviations, computes effect sizes, and KS statistics to assess the ability of the propensity scores to balance the treatment and control groups.
Returns a list containing
treat
The vector of 0/1 treatment assignment indicators.
ps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.