count.pairings: Count treatment-control pairings.

View source: R/count.pairings.R

count.pairingsR 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 z.

Value

The number of within-block treatment-control edges contained in the sparse match with the proposed blocks.

Author(s)

Samuel D. Pimentel


rcbalance documentation built on March 26, 2022, 1:07 a.m.