Learn R Programming

MultiObjMatch (version 1.0.0)

makeSparse: Helper function to mask edges

Description

Remove some of the treatment-control edges from a network flow representation of a match (forbidding those pairings)

Usage

makeSparse(net, mask, replaceMask = TRUE)

Value

the masked network structure object

Arguments

net

the network object

mask

a matrix indicating whether to exclude the corresponding edge

replaceMask

(optional) whether to mask