match_combine: combine 2 matchings

Description Usage Arguments Value

View source: R/match_combine.R

Description

if a set of individuals have been matched to two different controls, this functions can combine these sets of clusterings to a single clustering

Usage

1
match_combine(x, y, id, cl, tr, trv = 1, progress = FALSE)

Arguments

x

first matching, must contain an id-, a cluster-, and a treatment variable

y

second matching, must contain same things as x

id

name of id variable, if different in x and y, supply a vector

cl

name of cluster variable, if different in x and y, supply a vector

tr

name of treatment variable, if different in x and y, supply a vector

trv

value in tr indicating treatment, if different in x and y, supply a vector

progress

logical; show progress?

Value

a list of data frames; clust 1 and 2 are the old clusters mapped to the new; id 1 and 2 are the data set id:s mapped onto the new cluster; new.cluster contains info on number of cases and controls; data contains all individuals


renlund/dm documentation built on Jan. 18, 2022, 9:50 a.m.