Drops arms in a way which preserves connectivity and equally removes data from each treatment in a nodesplit comparison (so as to maximise precision)

drop.comp(ind.df, drops, comp, start = 1)

Arguments

ind.df

A data frame in long format (one arm per row) from which to drop treatments

drops

A vector of study identifiers from which to drop treatments

comp

A numeric vector of length 2 that contains treatment codes corresponding to the comparison for node-splitting

start

Can take either 0 or 1 to indicate whether to drop the treatment in comp[1] (0) or comp[2] (1)