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.
construct_outcome_template(res, num_edges_left, Z, dataset)
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.
A callrelax output.
Number of edges in the template-to-treatment network.
A vector of treatment status.
The original dataset.