Learn R Programming

match2C (version 1.2.4)

construct_outcome_template: Construct an output for template matching.

Description

This function constructs the output for template matching given the relaxsolution to the network flow problem, number of edges in the template-to-treated network, a vector of treatment status, and the original dataset. This function is of little interest to users.

Usage

construct_outcome_template(res, num_edges_left, Z, dataset)

Value

This function returns a list of three objects: 1) feasible: 0/1 depending on the feasibility of the matching problem; 2) match_treated: a data frame of the matched treated units; 3) match_control: a data frame of the matched control units.

Arguments

res

A callrelax output.

num_edges_left

Number of edges in the template-to-treatment network.

Z

A vector of treatment status.

dataset

The original dataset.