View source: R/stitch_two_nets_template.R
stitch_two_nets_template | R Documentation |
This function takes as inputs a template-to-treated network, one treated-to-control network, a tuning parameter lambda, and number of controls, and constructs one two-part network out of them.
stitch_two_nets_template(net1, net2, n_c, lambda, multiple = 1)
net1 |
A list of five vectors: startn, endn, ucap, cost, b. |
net2 |
A list of five vectors: startn, endn, ucap, cost, b. |
n_c |
Number of control units. |
lambda |
A penalty. |
multiple |
Number of treated units matched to each unit in the template |
This function is of limited interest to users. Parameter lambda is a weight given to the first part of the network, and a large lambda value emphasizes resemblance to the template. Parameter multiple could be taken as any integer number between 1 and floor(treated size / template size).
This function returns a list of five vectors: startn, endn, ucap, cost, b.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.