construct_outcome_template | R Documentation |

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

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

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.