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

View source: R/force_control.R

force_controlR Documentation

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)

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).

Value

This function returns a distance list object with added edges.


match2C documentation built on March 31, 2023, 6:39 p.m.