construct_outcome_template: Construct an output for template matching.

construct_outcome_templateR Documentation

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)

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.

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.


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