Description Usage Arguments Details Value See Also
Extract the balance table from ps
,
dx.wts
, and mnps
objects
1 2 3 |
x |
a |
digits |
The number of digits that the numerical entries should be rounded to. |
collapse.to |
For |
subset.var |
Eliminate all but a specified subset of covariates. |
subset.treat |
Subset to either all pairs that include a specified treatment or a single pair of treatments. |
subset.stop.method |
Subset to a subset of stop.method\'s used to fit the ps object. |
es.cutoff |
Subsets to comparisons with absolute ES values bigger than |
ks.cutoff |
Subsets to comparisons with KS values bigger than |
p.cutoff |
Subsets to comparisons with t- or chi-squared p-values no bigger than |
ks.p.cutoff |
Subsets to comparisons with KS p-values no bigger than |
timePeriods |
Used to subset times for iptw fits. |
... |
Additional arugments. |
bal.table
is a generic function for extracting balance
tables from ps
and dx.wts
objects. These objects
usually have several sets of candidate weights, one for an unweighted
analysis and perhaps several stop.methods
. bal.table
will return a table for each set of weights combined into a list. Each list
component will be named as given in the x
, usually the name of the
stop.method
. The balance table labeled “unw” indicates the
unweighted analysis.
Returns a data frame containing the balance information.
tx.mn |
The mean of the treatment group |
tx.sd |
The standard deviation of the treatment group |
ct.mn |
The mean of the control group |
ct.sd |
The standard deviation of the control group |
std.eff.sz |
The standardized effect size, (tx.mn-ct.mn)/tx.sd. If tx.sd is small or 0, the standardized effect size can be large or INF. Therefore standardized effect sizes greater than 500 are set to NA |
stat |
the t-statistic for numeric variables and the chi-square statistic for continuous variables |
p |
the p-value for the test associated with |
ks |
the KS statistic |
ks.pval |
the KS p-value computed using the analytic approximation, which does not necessarily work well with a lot of ties |
The example for ps
contains an example of the
use of bal.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.