View source: R/stitch_two_nets.R
stitch_two_nets | R Documentation |
This function takes as inputs two networks and one penalty lambda, and constructs one two-part network out of them.
stitch_two_nets(net1, net2, lambda, controls = 1, overflow = FALSE)
net1 |
A list of five vectors: startn, endn, ucap, cost, b. |
net2 |
A list of five vectors: startn, endn, ucap, cost, b. |
lambda |
A penalty. |
controls |
Number of controls matched to each treated. |
overflow |
A logical value indicating if overflow protection is turned on. |
This function is of limited interest to users. Once overflow is set to TRUE, each cotnrol in the first network will be directly connected to the sink at a large cost, so that the network flow problem is feasible as long as the first part is feasible.
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.