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)
This function returns a list of five vectors: startn, endn, ucap, cost, b.
A list of five vectors: startn, endn, ucap, cost, b.
A list of five vectors: startn, endn, ucap, cost, b.
Number of control units.
A penalty.
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).