Learn R Programming

match2C (version 1.2.4)

force_control: Force including certain controls in the final matched samples.

Description

This function processes the given distance list by adding certain zero-cost edges so that the user-specified controls are forced into the final matched samples. This function is of little interest to most users.

Usage

force_control(dist_list, Z, include)

Value

This function returns a distance list object with added edges.

Arguments

dist_list

A distance_list object.

Z

A length-n vector of treatment indicator.

include

A binary vector indicating which controls must be included (length(include) = sum(1-Z).