Using bal.tab() with Clustered Data
When using bal.tab()
with clustered data, the output will be different from the case with single-level data, and there are some options that are common across all bal.tab()
methods. This page outlines the outputs and options in this case.
There are two main components of the output of bal.tab()
with clustered data: the within-cluster balance summaries and the across-cluster balance summary. The within-cluster balance summaries display balance for units within each cluster separately.
The across-cluster balance summary pools information across the within-cluster balance summaries to simplify balance assessment. It provides a combination (e.g., mean or maximum) of each balance statistic for each covariate across all clusters. This allows you to see how bad the worst imbalance is and what balance looks like on average. The balance summary will not be computed if longitudinal treatments, multi-category treatments, or multiply imputed data are used.
There are four arguments for each bal.tab()
method that can handle clustered data: cluster
, which.cluster
, cluster.summary
, and cluster.fun
.
cluster |
A vector of cluster membership. This can be factor, character, or numeric vector. This argument is required to let |
which.cluster |
This is a display option that does not affect computation. If |
cluster.summary |
This is a display option that does not affect computation. If |
cluster.fun |
This is a display option that does not affect computation. Can be "min", "mean", or "max" and corresponds to which function is used in the across-cluster summary to combine results across clusters. For example, if |
The output is a bal.tab.cluster
object, which inherits from bal.tab
. It has the following elements:
Cluster.Balance |
For each cluster, a regular |
Cluster.Summary |
The balance summary across clusters. This will include the combination of each balance statistic for each covariate across all clusters according to the value of |
Observations |
A table of sample sizes or effective sample sizes for each cluster before and after adjustment. |
As with other methods, multiple weights can be specified, and values for all weights will appear in all tables.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.