count.pairings {rcbalance} | R Documentation |
Count treatment-control pairings.
Description
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.
Usage
count.pairings(z, exact)
Arguments
z |
a vector of treatment indicators. Must contain exactly 2 distinct values, one for treated and one for control. |
exact |
a vector of categories of a potential blocking variable. Must be the same length as argument |
Value
The number of within-block treatment-control edges contained in the sparse match with the proposed blocks.
Author(s)
Samuel D. Pimentel
[Package rcbalance version 1.8.8 Index]