stitch_two_nets_template: Stitch a template-to-treated network and a treated-to-control...

View source: R/stitch_two_nets_template.R

stitch_two_nets_templateR Documentation

Stitch a template-to-treated network and a treated-to-control network into one two-part network.

Description

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.

Usage

stitch_two_nets_template(net1, net2, n_c, lambda, multiple = 1)

Arguments

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

Details

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

Value

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


match2C documentation built on March 31, 2023, 6:39 p.m.