Arguments
Y
The outcome variable of interest.
Z
The (randomized) cluster-level treatment variable. This variable
should be binary. Two units in the same cluster should have the same
value.
grp
A variable indicating clusters of units. Two units in the same
cluster should have the same value.
data
A data frame containing the relevant variables.
match
A variable indicating matched-pairs of clusters. Two units in the
same matched-pair of clusters should have the same value. The
default is NULL (i.e., no matching).
weights
A variable indicating the population cluster sizes, which will be
used to construct weights for each pair of clusters. Two units in
the same cluster should have the same value. The default is
NULL, in which case sample cluster siz
fpc
A logical variable indicating whether or not finite population
correction should be used for estimating the lower bound of CACE
variance. This is relevant only when weights are specified.