comb_match: combine 2 matchings

Description Usage Arguments Value

View source: R/comb-match.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
comb_match(x, y, id, cl, tr, tr.value = 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

tr.value

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

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/miscmatch documentation built on May 27, 2019, 5:52 a.m.