stitch_two_nets: Stitch two treated-to-control networks into one two-part...

Description Usage Arguments Details Value

View source: R/stitch_two_nets.R

Description

This function takes as inputs two networks and one penalty lambda, and constructs one two-part network out of them.

Usage

1
stitch_two_nets(net1, net2, lambda, controls = 1, overflow = FALSE)

Arguments

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.

Details

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.

Value

This function returns a list of five vectors: startn, endn, ucap, cost, b.


match2C documentation built on May 9, 2021, 9:07 a.m.