Description Usage Arguments Details Value See Also
dx.wts
takes a ps
object or a set of propensity scores and
computes diagnostics assessing covariates balance.
1 2 3 4 5 6 7 8 |
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 |
an 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 |
desc |
a nested list containing detailed diagnostic information on the weights. This includes the number of treatment and control subjects, the effective sample size, the largest KS statistic, the average absolute effect size, and the complete balance table |
summary.tab |
a data frame showing balance information |
ps |
the given propensity scores |
w |
the given weights |
datestamp |
the date and time of the call to |
parameters |
the parameters used when calling |
alerts |
text containing any warnings accumulated during the estimation |
varNames |
the variable names |
The example for ps
contains an example of the
use of dx.wts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.