Given a treatment indicator and a potential blocking variable, counts the number of allowed treatment-control pairings in the whole match within blocks of the proposed variable.
count.pairings(z, exact)
a vector of treatment indicators. Must contain exactly 2 distinct values, one for treated and one for control.
a vector of categories of a potential blocking variable. Must be the same length as argument z
.
The number of within-block treatment-control edges contained in the sparse match with the proposed blocks.