
Last chance! 50% off unlimited learning
Sale ends in
Merge pairwise object with additional data, e.g., information on network connectivity.
# S3 method for pairwise
merge(x, y, all.x = TRUE, ...)
An object of class pairwise
.
An object of class pairwise
.
A data frame or an object of class netconnection
.
A logical indicating whether to keep all observations from the pairwise object, i.e., also include observations not belonging to a subnetwork due to missing estimates or standard errors.
Other arguments (passed on to merge
).
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
pairwise
, netconnection
,
dat.woods2010
# Transform data from long arm-based format to contrast-based
# format Argument 'sm' has to be used for odds ratio as summary
# measure; by default the risk ratio is used in the metabin
# function called internally.
#
pw1 <- pairwise(treatment, event = r, n = N,
studlab = author, data = dat.woods2010, sm = "OR")
head(pw1)
# Add information on network connectivity
nc1 <- netconnection(pw1)
pw1nc1 <- merge(pw1, nc1)
head(pw1nc1)
Run the code above in your browser using DataLab