View source: R/force_control.R
force_control | R Documentation |
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.
force_control(dist_list, Z, include)
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). |
This function returns a distance list object with added edges.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.